r52001 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52000‎ | r52001 | r52002 >
Date:20:53, 16 June 2009
Author:werdna
Status:ok
Tags:
Comment:
* Fix preferences for languages without a "default" entry in the date options.
Modified paths:
  • /trunk/phase3/includes/Preferences.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Preferences.php
@@ -965,6 +965,11 @@
966966 $ret = array();
967967
968968 if ($dateopts) {
 969+ if ( !in_array( 'default', $dateopts ) ) {
 970+ $dateopts[] = 'default'; // Make sure default is always valid
 971+ // Bug 19237
 972+ }
 973+
969974 $idCnt = 0;
970975 $epoch = '20010115161234'; # Wikipedia day
971976 foreach( $dateopts as $key ) {

Status & tagging log