Index: trunk/extensions/Wikilog/WikilogUtils.php |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | $useParserCache = $wgEnableParserCache && |
78 | 78 | intval( $wgUser->getOption( 'stubthreshold' ) ) == 0 && |
79 | 79 | $article->exists(); |
80 | | - $parserCacheClass = "ParserCache"; |
| 80 | + $parserCache = ParserCache::singleton(); |
81 | 81 | |
82 | 82 | # Parser options. |
83 | 83 | $parserOpt = ParserOptions::newFromUser( $wgUser ); |
— | — | @@ -89,16 +89,13 @@ |
90 | 90 | if ( method_exists( $parserOpt, 'addExtraKey' ) ) { |
91 | 91 | $parserOpt->addExtraKey( "WikilogFeed" ); |
92 | 92 | } else { |
93 | | - $parserCacheClass = "WikilogParserCache"; |
| 93 | + $parserCache = WikilogParserCache::singleton(); |
94 | 94 | } |
95 | 95 | } else { |
96 | 96 | $parserOpt->enableLimitReport(); |
97 | 97 | } |
98 | 98 | |
99 | 99 | if ( $useParserCache ) { |
100 | | - # Get the parser cache instance. |
101 | | - $parserCache = $parserCacheClass::singleton(); |
102 | | - |
103 | 100 | # Look for the parsed article output in the parser cache. |
104 | 101 | $parserOutput = $parserCache->get( $article, $parserOpt ); |
105 | 102 | |