Solved this problem, should have used:-
$text = $p->replaceVariables($article->mContent, $parserOptions );
Thanks for everyone suggestions, this is now working on 1.9.1
Ta
John
john Moorhouse wrote:
I think I have fixed the main error if using stable versions with MW 1.91, by changing the line:-
//$text = $p->replaceVariables( $text, $parserOptions ); to: $text = $p->replaceVariables( $text->mText, $parserOptions ); should be passing mText (the wikitext of the page) as above instead of the entire Parser object.. I think