r88932 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88931‎ | r88932 | r88933 >
Date:20:45, 26 May 2011
Author:yaron
Status:deferred
Tags:
Comment:
Fix for MW 1.19 (?)
Modified paths:
  • /trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php
@@ -194,8 +194,8 @@
195195 }
196196
197197 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;
200200 if ( $this->show_single_cat ) {
201201 $url .= ( strpos( $url, '?' ) ) ? '&' : '?';
202202 $url .= "_single";
@@ -1060,10 +1060,11 @@
10611061 } else {
10621062 $query = new SMWQuery();
10631063 }
1064 - if ( array_key_exists( 'format', $params ) )
 1064+ if ( array_key_exists( 'format', $params ) ) {
10651065 $format = $params['format'];
1066 - else
 1066+ } else {
10671067 $format = 'category';
 1068+ }
10681069 if ( array_key_exists( 'mainlabel', $params ) ) {
10691070 $mainlabel = $params['mainlabel'];
10701071 } else {

Status & tagging log