Index: trunk/extensions/IndexFunction/IndexFunction.php |
— | — | @@ -72,8 +72,8 @@ |
73 | 73 | } |
74 | 74 | |
75 | 75 | 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() ) { |
78 | 78 | global $wgScriptPath; |
79 | 79 | $tag = Xml::element( 'script', |
80 | 80 | array( 'type'=>'text/javascript', 'src'=>"$wgScriptPath/extensions/IndexFunction/specialindex.js" ), |