Mark Clements (HappyDog) schreef:
>   $Parser->mVariables =& $wgParser->mVariables;
>   $Parser->mOutput =& $wgParser->mOutput;
>
> Now, it is clear to me that this is the wrong way of going about this - I
> shouldn't be having to mess with the internals of the parser object in order
> to just pre-process the text, as it will clearly break whenever the parser
> object is updated!
>
> Can someone tell me the correct forward-compatible way to pre-process
> article text in this manner?
>
>   
My guess would be something like $parser = clone $wgParser; . Dunno if 
that works (or if clone is even available in PHP 4), but you could try.

Roan Kattouw (Catrope)

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to