Index: trunk/extensions/JSKit/JSKit.php |
— | — | @@ -163,10 +163,10 @@ |
164 | 164 | } |
165 | 165 | |
166 | 166 | # Appends the javascript |
167 | | -function efJSKit(&$out, &$text) { |
168 | | - global $wgJSKitNamespaces, $wgJSKitAlways, $wgTitle; |
169 | | - $ns = $wgTitle->getNamespace(); |
170 | | - if( !$wgTitle->getArticleId() ) { |
| 167 | +function efJSKit( $out, &$text ) { |
| 168 | + global $wgJSKitNamespaces, $wgJSKitAlways; |
| 169 | + $ns = $out->getTitle()->getNamespace(); |
| 170 | + if( !$out->getTitle()->getArticleId() ) { |
171 | 171 | // special page or wrong namespace, so don't do anything |
172 | 172 | return true; |
173 | 173 | } |