http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94192

Revision: 94192
Author:   ialex
Date:     2011-08-10 19:41:03 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
Removed usage of $wgTitle

Modified Paths:
--------------
    trunk/extensions/JSKit/JSKit.php

Modified: trunk/extensions/JSKit/JSKit.php
===================================================================
--- trunk/extensions/JSKit/JSKit.php    2011-08-10 19:34:23 UTC (rev 94191)
+++ trunk/extensions/JSKit/JSKit.php    2011-08-10 19:41:03 UTC (rev 94192)
@@ -163,10 +163,10 @@
 }
 
 # Appends the javascript
-function efJSKit(&$out, &$text) {
-       global $wgJSKitNamespaces, $wgJSKitAlways, $wgTitle;
-       $ns = $wgTitle->getNamespace();
-       if( !$wgTitle->getArticleId() ) {
+function efJSKit( $out, &$text ) {
+       global $wgJSKitNamespaces, $wgJSKitAlways;
+       $ns = $out->getTitle()->getNamespace();
+       if( !$out->getTitle()->getArticleId() ) {
                // special page or wrong namespace, so don't do anything
                return true;
        }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to