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

Daniel Barrett danb at VistaPrint.com
Wed Aug 29 19:01:44 UTC 2007


I am just hitting the page, not editing it.

If I edit and save, there is no change.

DanB

-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Jim Hu
Sent: Wednesday, August 29, 2007 2:36 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Extension help: why is text appearing twice?

Are you saving or just previewing?

http://bugzilla.wikimedia.org/show_bug.cgi?id=7050

On Aug 29, 2007, at 1:13 PM, Daniel Barrett wrote:

> 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




More information about the MediaWiki-l mailing list