Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -397,7 +397,9 @@ |
398 | 398 | |
399 | 399 | // Make sure it is valid |
400 | 400 | 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 ); |
402 | 404 | // Get the cached HTML |
403 | 405 | wfDebug( "Trying parser cache $key\n" ); |
404 | 406 | $value = $parserMemc->get( $key ); |
— | — | @@ -447,7 +449,8 @@ |
448 | 450 | // Update the cache... |
449 | 451 | $article->mTitle->invalidateCache(); |
450 | 452 | |
451 | | - $key = 'sv-' . ParserCache::getKey( $article, $wgUser ); |
| 453 | + $parserCache =& ParserCache::singleton(); |
| 454 | + $key = 'sv-' . $parserCache->getKey( $article, $wgUser ); |
452 | 455 | // Add cache mark to HTML |
453 | 456 | $now = wfTimestampNow(); |
454 | 457 | $parserOutput->setCacheTime( $now ); |