Revision: 48634
Author:   vasilievvv
Date:     2009-03-20 16:53:22 +0000 (Fri, 20 Mar 2009)

Log Message:
-----------
Make ParserCache::getKey backward-compatible, so it doesn't break FlaggedRevs

Modified Paths:
--------------
    trunk/phase3/includes/parser/ParserCache.php

Modified: trunk/phase3/includes/parser/ParserCache.php
===================================================================
--- trunk/phase3/includes/parser/ParserCache.php        2009-03-20 15:33:02 UTC 
(rev 48633)
+++ trunk/phase3/includes/parser/ParserCache.php        2009-03-20 16:53:22 UTC 
(rev 48634)
@@ -28,7 +28,10 @@
 
        function getKey( &$article, $popts ) {
                global $wgRequest;
-               
+
+               if( $popts instanceof User )    // It used to be getKey( 
&$article, &$user )
+                       $popts = ParserOptions::newFromUser( $popts );
+
                $user = $popts->mUser;
                $printable = ( $popts->getIsPrintable() ) ? '!printable=1' : '';
                $hash = $user->getPageRenderingHash();



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

Reply via email to