From fb2126415362713a1e063e1cebf6e6787e013921 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sat, 2 Feb 2008 11:49:18 +0000 Subject: [PATCH] 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. --- RELEASE-NOTES | 1 + includes/Article.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1