(bug 15209) New hook right after initialization
This commit is contained in:
parent
1ea75a286a
commit
90a940cb6b
4 changed files with 13 additions and 0 deletions
1
CREDITS
1
CREDITS
|
|
@ -83,6 +83,7 @@ following names for their contribution to the product.
|
|||
* Marcin Cieślak
|
||||
* Marcus Buck
|
||||
* Marooned
|
||||
* mati
|
||||
* Matthew Britton
|
||||
* Max Semenik
|
||||
* Michael De La Rue
|
||||
|
|
|
|||
|
|
@ -182,6 +182,8 @@ this. Was used when mwEmbed was going to be an extension.
|
|||
* (bug 671) The HTML <abbr> tag is now permitted.
|
||||
* RecentChanges now has a legend to explain what the Nmb! flags mean, and the
|
||||
flags have tooltips.
|
||||
* (bug 15209) New hook BeforeInitialize called after everything has been setup
|
||||
but before Mediawiki::performRequestForTitle()
|
||||
|
||||
=== Bug fixes in 1.16 ===
|
||||
|
||||
|
|
|
|||
|
|
@ -507,6 +507,14 @@ rendered inline in wiki pages or galleries in category pages.
|
|||
&$nt: the image title
|
||||
&$time: image timestamp
|
||||
|
||||
'BeforeInitialize': before anything is initialized in performRequestForTitle()
|
||||
&$title: Title being used for request
|
||||
&$article: The associated Article object
|
||||
&$output: OutputPage object
|
||||
&$user: User
|
||||
$request: WebRequest object
|
||||
$this: Mediawiki object
|
||||
|
||||
'BeforePageDisplay': Prior to outputting a page
|
||||
&$out: OutputPage object
|
||||
&$skin: Skin object
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ class MediaWiki {
|
|||
|
||||
$output->setTitle( $title );
|
||||
|
||||
wfRunHooks( 'BeforeInitialize', array( &$title, &$article, &$output, &$user, $request, $this ) );
|
||||
|
||||
if( !$this->preliminaryChecks( $title, $output, $request ) ) {
|
||||
wfProfileOut( __METHOD__ );
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue