Added parameter to BeforePageDisplay hook so that extension can use it to modify it. See my next commit for an inplementation of it.

This commit is contained in:
Alexandre Emsenhuber 2008-04-07 17:53:31 +00:00
parent 3a32a6ec04
commit b5125bffc7
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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 );