You know, I thought this was more straightforward at first, but looking at my own code I use the global parser.
$wgParser seems to be created in Setup.php
$wgParser = new StubObject( 'wgParser', 'Parser' );
So, it seems like it shouldn't be a "non-object" when you call it. Try an is_object on it and print the result just to be sure??
Jim On Sep 10, 2007, at 12:02 PM, Andreas Rindler wrote:
On 10/09/2007, Jim Hu jimhu@tamu.edu wrote:
$wgParser is a global that has to be both created before you use it, and declared as a global. Did you forget either of those? You can also create a new parser inside your extension.
I ceclared global $wgParser; at the beginning of the function but I am not sure how to 'create' one?!
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054