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

Jim Hu jimhu at tamu.edu
Wed Aug 29 18:35:51 UTC 2007


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
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l

=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054




More information about the MediaWiki-l mailing list