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

Revision: 90780
Author:   aaron
Date:     2011-06-25 19:09:13 +0000 (Sat, 25 Jun 2011)
Log Message:
-----------
(bug 29579) Use the normal latest version of NS_MEDIAWIKI pages/msgs when 
transcluded. This avoids having to deal with the ambiguity of parser outputs 
having mTemplateIds with rev ID zero for them (didn't exist or wasn't 
customized?). Also, uncustomized msgs have no versions to reference. Note that 
NS_MEDIAWIKI pages, though not reviewable, are protected anyway.

Modified Paths:
--------------
    trunk/extensions/FlaggedRevs/dataclasses/FlaggedRevs.hooks.php

Modified: trunk/extensions/FlaggedRevs/dataclasses/FlaggedRevs.hooks.php
===================================================================
--- trunk/extensions/FlaggedRevs/dataclasses/FlaggedRevs.hooks.php      
2011-06-25 19:05:40 UTC (rev 90779)
+++ trunk/extensions/FlaggedRevs/dataclasses/FlaggedRevs.hooks.php      
2011-06-25 19:09:13 UTC (rev 90780)
@@ -146,9 +146,12 @@
        * Note: $parser can be false
        */
        public static function parserFetchStableTemplate( $parser, Title 
$title, &$skip, &$id ) {
-               if ( !( $parser instanceof Parser ) || $title->getNamespace() < 
0 ) {
+               if ( !( $parser instanceof Parser ) ) {
                        return true; // nothing to do
                }
+               if ( $title->getNamespace() < 0 || $title->getNamespace() == 
NS_MEDIAWIKI ) {
+                       return true; // nothing to do (bug 29579 for 
NS_MEDIAWIKI)
+               }
                $incManager = FRInclusionManager::singleton();
                if ( !$incManager->parserOutputIsStabilized() ) {
                        return true; // trigger for stable version parsing only


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

Reply via email to