r22621 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22620‎ | r22621 | r22622 >
Date:06:38, 1 June 2007
Author:aaron
Status:old
Tags:
Comment:
*Some E_STRICT cleanup
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -397,7 +397,9 @@
398398
399399 // Make sure it is valid
400400 if( !$article || !$article->getId() ) return NULL;
401 - $key = 'sv-' . ParserCache::getKey( $article, $wgUser );
 401+
 402+ $parserCache =& ParserCache::singleton();
 403+ $key = 'sv-' . $parserCache->getKey( $article, $wgUser );
402404 // Get the cached HTML
403405 wfDebug( "Trying parser cache $key\n" );
404406 $value = $parserMemc->get( $key );
@@ -447,7 +449,8 @@
448450 // Update the cache...
449451 $article->mTitle->invalidateCache();
450452
451 - $key = 'sv-' . ParserCache::getKey( $article, $wgUser );
 453+ $parserCache =& ParserCache::singleton();
 454+ $key = 'sv-' . $parserCache->getKey( $article, $wgUser );
452455 // Add cache mark to HTML
453456 $now = wfTimestampNow();
454457 $parserOutput->setCacheTime( $now );