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

Daniel Barrett danb at VistaPrint.com
Wed Aug 29 18:13:56 UTC 2007

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  

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) {

The page still displays normally.


More information about the MediaWiki-l mailing list