Index: trunk/extensions/Wikilog/WikilogItemPager.php |
— | — | @@ -93,14 +93,14 @@ |
94 | 94 | $this->mLimit = $wgWikilogExpensiveLimit; |
95 | 95 | |
96 | 96 | # Check parser state, setup edit links. |
97 | | - global $wgOut, $wgParser; |
| 97 | + global $wgOut, $wgParser, $wgTitle; |
98 | 98 | if ( $this->mIncluding ) { |
99 | 99 | $popt = $wgParser->getOptions(); |
100 | 100 | } else { |
101 | 101 | $popt = $wgOut->parserOptions(); |
102 | 102 | |
103 | 103 | # We will need a clean parser if not including. |
104 | | - $wgParser->clearState(); |
| 104 | + $wgParser->startExternalParse( $wgTitle, $popt, Parser::OT_HTML ); |
105 | 105 | } |
106 | 106 | $this->mShowEditLink = $popt->getEditSection(); |
107 | 107 | } |