* Use $wgOut->parse() in wfGetSiteNotice() instead of creating a new parser

instance. This allows use of extension hooks if required.
This commit is contained in:
Brion Vibber 2005-12-17 06:26:27 +00:00
parent 02de196586
commit 3ba030bc63
2 changed files with 3 additions and 3 deletions

View file

@ -332,6 +332,8 @@ fully support the editing toolbar, but was found to be too confusing.
* (bug 3493) Mark edits patrolled when they are reverted
patch by Leon Planken
* Add a hook for additional user creation throttle / limiter extensions
* Use $wgOut->parse() in wfGetSiteNotice() instead of creating a new parser
instance. This allows use of extension hooks if required.
=== Caveats ===

View file

@ -1298,9 +1298,7 @@ function wfGetSiteNotice() {
$notice = $wgSiteNotice;
}
if($notice != '-' && $notice != '') {
$specialparser = new Parser();
$parserOutput = $specialparser->parse( $notice, $wgTitle, $wgOut->mParserOptions, false );
$notice = $parserOutput->getText();
$notice = $wgOut->parse( $notice );
}
wfProfileOut( $fname );
return $notice;