From: Rotem Liss Date: Sat, 2 Feb 2008 11:49:18 +0000 (+0000) Subject: The comment of a time-limited protection now contains the date in the default format... X-Git-Tag: 1.31.0-rc.0~49656 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=fb2126415362713a1e063e1cebf6e6787e013921;p=lhc%2Fweb%2Fwiklou.git The comment of a time-limited protection now contains the date in the default format, rather than in the user's chosen format. Bug reported by User:Yonatan. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 20c8482dae..b276299caa 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -352,6 +352,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 12793) Fix for restricted namespaces/pages in Special:Export * Fix for Special:Export so it doesn't ignore the page named '0' * Don't display rollback link if the user doesn't have all required permissions +* The comment of a time-limited protection now contains the date in the default format == Parser changes in 1.12 == diff --git a/includes/Article.php b/includes/Article.php index 753e7dfefe..ec702a7bf1 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1734,7 +1734,7 @@ class Article { $expiry_description = ''; if ( $encodedExpiry != 'infinity' ) { - $expiry_description = ' (' . wfMsgForContent( 'protect-expiring', $wgContLang->timeanddate( $expiry ) ).')'; + $expiry_description = ' (' . wfMsgForContent( 'protect-expiring', $wgContLang->timeanddate( $expiry, false, false ) ).')'; } # Prepare a null revision to be added to the history