Fix bug that caused "Non-string key given" exception.
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 26 Feb 2011 08:19:21 +0000 (08:19 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 26 Feb 2011 08:19:21 +0000 (08:19 +0000)
Broken since introducsed in r10810 almost six years ago.
This proves that the exception in message caches is valid and covers errors.
Tested that exception is no longer thrown.

languages/classes/LanguageFi.php

index 30da174..e3d922c 100644 (file)
@@ -118,7 +118,7 @@ class LanguageFi extends Language {
                        if ( !is_numeric( $item ) ) {
                                if ( count ( explode( '-', $item ) ) == 3 && strlen( $item ) == 10 ) {
                                        list( $yyyy, $mm, $dd ) = explode( '-', $item );
-                                       $final .= ' ' . $this->date( "{$yyyy}{$mm}{$dd}00000000" );
+                                       $final .= ' ' . $this->date( "{$yyyy}{$mm}{$dd}000000" );
                                        continue;
                                }
                                if ( isset( $weekds[$item] ) ) {