[Mediawiki-l] Extension help: why is text appearing twice?

Lane, Ryan Ryan.Lane at ocean.navo.navy.mil
Wed Aug 29 18:56:08 UTC 2007

> -----Original Message-----
> From: mediawiki-l-bounces at lists.wikimedia.org [mailto:mediawiki-l-
> bounces at lists.wikimedia.org] On Behalf Of Daniel Barrett
> Sent: Wednesday, August 29, 2007 1:14 PM
> To: MediaWiki announcements and site admin list
> Subject: Re: [Mediawiki-l] Extension help: why is text appearing
> Jim Hu writes:
> >I suspect that dividing by zero doesn't crash, I bet it sends an
> >error to the log.
> >When I want to check that execution got somewhere by crashing I use
> >exit;
> Even using exit produces no effect in the OutputPageBeforeHTML hook
> function. I think it's just not being executed.
> Here is the example again:
> $wgHooks['OutputPageBeforeHTML'][] = 'vpHookOutput';
> function vpHookOutput(&$parserOutput, &$text) {
>   exit(5);
> }
> The page still displays normally.
> Sigh.
> DanB

Are you using any other extensions? If so, are any using that hook? If
so, when they use that hook, do they return true?


Ryan Lane

More information about the MediaWiki-l mailing list