* Changing the default of $format to false (was '0')
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 7 Apr 2005 19:29:38 +0000 (19:29 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 7 Apr 2005 19:29:38 +0000 (19:29 +0000)
languages/Language.php

index df25286..35ca1fc 100644 (file)
@@ -2105,7 +2105,7 @@ class Language {
         *               validateTimeZone() in Special:Preferences
         * @return string
         */
-       function date( $ts, $adj = false, $format = '0', $timecorrection = false ) {
+       function date( $ts, $adj = false, $format = false, $timecorrection = false ) {
                global $wgAmericanDates, $wgUser;
                
                if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
@@ -2138,7 +2138,7 @@ class Language {
        *               validateTimeZone() in Special:Preferences
        * @return string
        */
-       function time( $ts, $adj = false, $format = '0', $timecorrection = false ) {
+       function time( $ts, $adj = false, $format = false, $timecorrection = false ) {
                global $wgUser, $wgAmericanDates;
 
                if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
@@ -2166,7 +2166,7 @@ class Language {
        *               validateTimeZone() in Special:Preferences
        * @return string
        */
-       function timeanddate( $ts, $adj = false, $format = '0', $timecorrection = false) {
+       function timeanddate( $ts, $adj = false, $format = false, $timecorrection = false) {
                global $wgUser, $wgAmericanDates;
                
                $datePreference = $this->dateFormat($format);