OutputPageBeforeHTML happens on every page load, regardless of whether
there was anything to parse. Generally speaking, asking $wgParser for
the title is (IMO) a bad idea from that particular hook.
I'd recommend, instead, using $wgTitle - which (afaik) is pretty much
guaranteed to have a value reflecting the current page. Good luck!
-- Jim R. Wilson (jimbojw)
On Thu, Mar 13, 2008 at 12:19 PM, Daniel Barrett <danb(a)vistaprint.com> wrote:
Whoops, forgot to say this is MW 1.11.0.
DanB
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l