From: Alexandre Emsenhuber Date: Mon, 7 Apr 2008 17:53:31 +0000 (+0000) Subject: Added parameter to BeforePageDisplay hook so that extension can use it to modify... X-Git-Tag: 1.31.0-rc.0~48554 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=b5125bffc7c207c06fa7c8d1220d36bc4e130789;p=lhc%2Fweb%2Fwiklou.git Added parameter to BeforePageDisplay hook so that extension can use it to modify it. See my next commit for an inplementation of it. --- diff --git a/docs/hooks.txt b/docs/hooks.txt index d6379af40d..db9d542b60 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -429,7 +429,8 @@ rendered inline in wiki pages or galleries in category pages. &$time: image timestamp 'BeforePageDisplay': Prior to outputting a page -$out: OutputPage object +&$out: OutputPage object +&$skin: Skin object 'BeforeParserFetchTemplateAndtitle': before a template is fetched by Parser &$parser: Parser object diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 48302c03e0..482174be4b 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -781,7 +781,7 @@ class OutputPage { } else { // Hook that allows last minute changes to the output page, e.g. // adding of CSS or Javascript by extensions. - wfRunHooks( 'BeforePageDisplay', array( &$this ) ); + wfRunHooks( 'BeforePageDisplay', array( &$this, &$sk ) ); wfProfileIn( 'Output-skin' ); $sk->outputPage( $this );