r54603 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54602‎ | r54603 | r54604 >
Date:21:05, 7 August 2009
Author:mrzman
Status:deferred
Tags:
Comment:
Use $wgTitle for BC w/ older MediaWiki
Modified paths:
  • /trunk/extensions/IndexFunction/IndexFunction.php (modified) (history)

Diff [purge]

Index: trunk/extensions/IndexFunction/IndexFunction.php
@@ -72,8 +72,8 @@
7373 }
7474
7575 function efIndexJS( &$out, &$sk ) {
76 - $t = $out->getTitle();
77 - if ( $t->getPrefixedText() == SpecialPage::getTitleFor( 'Index' )->getPrefixedText() ) {
 76+ global $wgTitle;
 77+ if ( $wgTitle->getPrefixedText() == SpecialPage::getTitleFor( 'Index' )->getPrefixedText() ) {
7878 global $wgScriptPath;
7979 $tag = Xml::element( 'script',
8080 array( 'type'=>'text/javascript', 'src'=>"$wgScriptPath/extensions/IndexFunction/specialindex.js" ),

Status & tagging log