Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -609,6 +609,9 @@ |
610 | 610 | * Like ParserCache::getKey() with stable-pcache instead of pcache |
611 | 611 | */ |
612 | 612 | protected static function getCacheKey( $parserCache, Article $article, $popts ) { |
| 613 | + if( $popts instanceof User ) { |
| 614 | + $popts = ParserOptions::newFromUser( $popts ); |
| 615 | + } |
613 | 616 | $key = $parserCache->getKey( $article, $popts ); |
614 | 617 | $key = str_replace( ':pcache:', ':stable-pcache:', $key ); |
615 | 618 | return $key; |