From: Ævar Arnfjörð Bjarmason Date: Sun, 8 May 2005 16:02:07 +0000 (+0000) Subject: * Changed the timeanddate() function to return the user selected date format X-Git-Tag: 1.5.0alpha2~262 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=ff88d9df314de20bf4d036b231f565989e4f1d3d;p=lhc%2Fweb%2Fwiklou.git * Changed the timeanddate() function to return the user selected date format unless told otherwise --- diff --git a/languages/Language.php b/languages/Language.php index ff587a8e14..b7e5d3a261 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -2460,12 +2460,12 @@ class Language { * @param bool $adj whether to adjust the time output according to the * user configured offset ($timecorrection) * @param mixed $format what format to return, if it's false output the - * default one. + * default one (default true) * @param string $timecorrection the time offset as returned by * validateTimeZone() in Special:Preferences * @return string */ - function timeanddate( $ts, $adj = false, $format = false, $timecorrection = false) { + function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false) { global $wgUser, $wgAmericanDates; $datePreference = $this->dateFormat($format);