* Use $wgOut->parse() in wfGetSiteNotice() instead of creating a new parser
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 17 Dec 2005 06:26:27 +0000 (06:26 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 17 Dec 2005 06:26:27 +0000 (06:26 +0000)
  instance. This allows use of extension hooks if required.

RELEASE-NOTES
includes/GlobalFunctions.php

index 95b3f3e..ef29a88 100644 (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 ===
index 45e1e0c..8b97d8d 100644 (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;