On Mon, 10 Sep 2007 14:42:11 +0100, Andreas Rindler wrote:
$outputtext = $wgParser->recursiveTagParse("<categorytree depth="2" onlyroot="on" mode="all" style="float:none; margin-left:1ex; border:1px solid gray; padding:0.7ex; background-color:white;">My Category</categorytree>");
I don't know if you can parse a constant string, so I wouldn't be surprised if the parser complains somewhere that it's not an object. I'd do something like:
$outputtext = "<categorytree depth="2" onlyroot="on" mode="all" style="float:none; margin-left:1ex; border:1px solid gray; padding:0.7ex; background-color:white;">My Category</categorytree>")
$outputtext = $parser->recursiveTagParse($outputtext);
Assuming that the third arg to your hook is called $parser; probably neater to use the one that's passed in. But keeping your text in a variable and then replacing it is more consistent with most of what I've seen.