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:
parent
3a32a6ec04
commit
b5125bffc7
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue