- fixed incorrect duedate formatting

This commit is contained in:
Max Pozdeev 2009-11-13 13:25:23 +03:00
parent 4d23ad97dd
commit 07dce8289e

View file

@ -124,10 +124,7 @@ function formatDate3($format, $ay, $am, $ad, $lang)
$M = $ms[$am-1];
$j = $ad;
$d = $j < 10 ? '0'.$j : $j;
return str_replace(
array('Y','F','M','n','m','d','j'),
array($Y, $F, $M, $n, $m, $d, $j),
$format);
return strtr($format, array('Y'=>$Y, 'F'=>$F, 'M'=>$M, 'n'=>$n, 'm'=>$m, 'd'=>$d, 'j'=>$j));
}
?>