* (bug 8153) <nowiki> doesn't work in site notice
authorRob Church <robchurch@users.mediawiki.org>
Sun, 17 Dec 2006 01:05:03 +0000 (01:05 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 17 Dec 2006 01:05:03 +0000 (01:05 +0000)
The fix for this was to use wfMsgForContentNoTrans() in wfGetCachedNotice(). Since we pass the text through the parser, there's no point in doing message transformations up front, and it allows users to do magic things.

RELEASE-NOTES
includes/GlobalFunctions.php

index 3eeff13..0160417 100644 (file)
@@ -331,6 +331,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 4488) Support watching pages on deletion; introduces new user preference
 * Minor restructuring of Special:Preferences; "watch pages I edit" and "watch
   pages I create" options now accessible under "Watchlist" options
+* (bug 8153) <nowiki> doesn't work in site notice
 
 == Languages updated ==
 
index b81ffb0..6064807 100644 (file)
@@ -1456,7 +1456,7 @@ function wfGetCachedNotice( $name ) {
                        return false;
                }
        } else {
-               $notice = wfMsgForContent( $name );
+               $notice = wfMsgForContentNoTrans( $name );
                if( wfEmptyMsg( $name, $notice ) || $notice == '-' ) {
                        wfProfileOut( $fname );
                        return( false );