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

Rob Church robchur at gmail.com
Wed Aug 29 15:36:19 UTC 2007

On 29/08/2007, Daniel Barrett <danb at vistaprint.com> wrote:
> >You might try OutputPageBeforeHTML.
> >Rob Church
> Unfortunately OutputPageBeforeHTML doesn't work -- my output doesn't
> appear at all on the page.
> Here's the extension again:
> $wgHooks['OutputPageBeforeHTML'][] = 'Problem';
> function Problem(&$parser, &$text) {
>   $text = "$text abc";
> }

You'll need to accept the correct parameters for the hook and use an
appropriate method to append to the page. See docs/hooks.txt.

Rob Church

More information about the MediaWiki-l mailing list