Index: trunk/extensions/News/NewsRenderer.php |
— | — | @@ -831,12 +831,7 @@ |
832 | 832 | // this would still save the cost of rendering if the data didn't change |
833 | 833 | global $wgParser; //evil global |
834 | 834 | |
835 | | - if (!$wgParser->mOptions) { //XXX: ugly hack :( |
836 | | - $wgParser->mOptions = new ParserOptions; |
837 | | - $wgParser->setOutputType( OT_HTML ); |
838 | | - $wgParser->clearState(); |
839 | | - $wgParser->mTitle = $this->mTitle; |
840 | | - } |
| 835 | + $wgParser->startExternalParse( $this->mTitle, new ParserOptions, OT_HTML, true ); |
841 | 836 | |
842 | 837 | //FIXME: an EXTREMELY ugly hack to force generation of absolute links. |
843 | 838 | // this is needed because Title::getLocalUrl check wgRequest to see |