http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95171
Revision: 95171
Author: bawolff
Date: 2011-08-21 18:46:01 +0000 (Sun, 21 Aug 2011)
Log Message:
-----------
Follow-up r86534 - Do not add tracking categories if we're looking at a special
page.
Thank you Nikerabbit for suggesting how to fix.
Modified Paths:
--------------
trunk/phase3/RELEASE-NOTES-1.18
trunk/phase3/includes/parser/Parser.php
Modified: trunk/phase3/RELEASE-NOTES-1.18
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.18 2011-08-21 18:41:46 UTC (rev 95170)
+++ trunk/phase3/RELEASE-NOTES-1.18 2011-08-21 18:46:01 UTC (rev 95171)
@@ -438,6 +438,7 @@
Windows servers.
* (bug 30074) Moving user JS subpages resulted in JS errors because
#REDIRECT [[Foo]] is invalid JS
+* Tracking categories are no longer shown in footer for special pages
=== API changes in 1.18 ===
* BREAKING CHANGE: action=watch now requires POST and token.
Modified: trunk/phase3/includes/parser/Parser.php
===================================================================
--- trunk/phase3/includes/parser/Parser.php 2011-08-21 18:41:46 UTC (rev
95170)
+++ trunk/phase3/includes/parser/Parser.php 2011-08-21 18:46:01 UTC (rev
95171)
@@ -3956,6 +3956,10 @@
* @return Boolean: whether the addition was successful
*/
protected function addTrackingCategory( $msg ) {
+ if ( $this->mTitle->getNamespace() === NS_SPECIAL ) {
+ wfDebug( __METHOD__.": Not adding tracking category
$msg to special page!\n" );
+ return false;
+ }
$cat = wfMsgForContent( $msg );
# Allow tracking categories to be disabled by setting them to
"-"
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs