I found setHook in Parser.php but $wgParser exists only once in an irrelevant comment. Doing a quick search showed that $wgParser is referenced up to 147 times on the standard media wiki distro. 56 of those lines show $wgParser preceded by a global declaration. It seems like it's locally defined yet in my script I'm unable to change the name. Any suggestions?
On Fri, May 16, 2008 at 1:11 AM, Tim Starling tstarling@wikimedia.org wrote:
Jonathan Nowacki wrote:
Dear developers,
I wrote or edited the code attached below. I've also supplied working sample input and output files. I changed certain variables or names to "arbitrary" or "tag" in order to figure out how the thing works. Some variables like $wgParser or setHook can not be changed and appear to be predefined. That's fine, but when I hit "GO" after placing either one of these into the search box at mediawiki.org I get "*There is no page
titled
"setHook"*.
[...]
In your MediaWiki installation, open Parser.php in the includes subdirectory. Search for "function setHook". Above that text, you will find the documentation for setHook(), in a comment. Generally, Parser.php is where you find documentation for $wgParser. Sometimes you will find documentation on a website, but it is often out of date and so not to be trusted.
-- Tim Starling
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l