Index: trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php |
— | — | @@ -194,8 +194,8 @@ |
195 | 195 | } |
196 | 196 | |
197 | 197 | function makeBrowseURL( $category, $applied_filters = array(), $subcategory = null ) { |
198 | | - global $wgTitle; |
199 | | - $url = $wgTitle->getFullURL() . '/' . $category; |
| 198 | + $bd = SpecialPage::getTitleFor( 'BrowseData' ); |
| 199 | + $url = $bd->getFullURL() . '/' . $category; |
200 | 200 | if ( $this->show_single_cat ) { |
201 | 201 | $url .= ( strpos( $url, '?' ) ) ? '&' : '?'; |
202 | 202 | $url .= "_single"; |
— | — | @@ -1060,10 +1060,11 @@ |
1061 | 1061 | } else { |
1062 | 1062 | $query = new SMWQuery(); |
1063 | 1063 | } |
1064 | | - if ( array_key_exists( 'format', $params ) ) |
| 1064 | + if ( array_key_exists( 'format', $params ) ) { |
1065 | 1065 | $format = $params['format']; |
1066 | | - else |
| 1066 | + } else { |
1067 | 1067 | $format = 'category'; |
| 1068 | + } |
1068 | 1069 | if ( array_key_exists( 'mainlabel', $params ) ) { |
1069 | 1070 | $mainlabel = $params['mainlabel']; |
1070 | 1071 | } else { |