From: Ævar Arnfjörð Bjarmason Date: Thu, 28 Apr 2005 08:46:09 +0000 (+0000) Subject: * Fixed a bug that appeared when the 'date' preference was set to 'ISO 8601' X-Git-Tag: 1.5.0alpha1~86 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=571235396cca4103223032bf13705da32437e333;p=lhc%2Fweb%2Fwiklou.git * Fixed a bug that appeared when the 'date' preference was set to 'ISO 8601' and $wgUseDynamicDates was true. --- diff --git a/includes/DateFormatter.php b/includes/DateFormatter.php index f135d32617..1a5e595b73 100755 --- a/includes/DateFormatter.php +++ b/includes/DateFormatter.php @@ -132,6 +132,7 @@ class DateFormatter * @param $text */ function reformat( $preference, $text ) { + if ($preference == 'ISO 8601') $preference = 4; # The ISO 8601 option used to be 4 for ( $i=1; $i<=DF_LAST; $i++ ) { $this->mSource = $i; if ( @$this->rules[$preference][$i] ) {