* Fixed a bug that appeared when the 'date' preference was set to 'ISO 8601'
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 28 Apr 2005 08:46:09 +0000 (08:46 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 28 Apr 2005 08:46:09 +0000 (08:46 +0000)
  and $wgUseDynamicDates was true.

includes/DateFormatter.php

index f135d32..1a5e595 100755 (executable)
@@ -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] ) {