From: Rob Church Date: Sun, 17 Dec 2006 01:05:03 +0000 (+0000) Subject: * (bug 8153) doesn't work in site notice X-Git-Tag: 1.31.0-rc.0~54871 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=5f5abd454b9f7f3608812adb9ffe3855e23c9b50;p=lhc%2Fweb%2Fwiklou.git * (bug 8153) doesn't work in site notice 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. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3eeff13f43..01604178b8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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) doesn't work in site notice == Languages updated == diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index b81ffb0039..60648070b7 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 );