r94192 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94191‎ | r94192 | r94193 >
Date:19:41, 10 August 2011
Author:ialex
Status:ok
Tags:
Comment:
Removed usage of $wgTitle
Modified paths:
  • /trunk/extensions/JSKit/JSKit.php (modified) (history)

Diff [purge]

Index: trunk/extensions/JSKit/JSKit.php
@@ -163,10 +163,10 @@
164164 }
165165
166166 # 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() ) {
171171 // special page or wrong namespace, so don't do anything
172172 return true;
173173 }

Status & tagging log