diff --git a/classes/Tools.php b/classes/Tools.php index 7fc55ca80..0472fa8d5 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -605,13 +605,18 @@ class ToolsCore * Display date regarding to language preferences * * @param string $date Date to display format UNIX - * @param integer $id_lang Language id + * @param integer $id_lang Language id DEPRECATED * @param boolean $full With time or not (optional) * @param string $separator DEPRECATED * @return string Date */ public static function displayDate($date, $id_lang, $full = false, $separator = '-') { + if ($id_lang !== null) + Tools::displayParameterAsDeprecated('id_lang'); + if ($separator !== null) + Tools::displayParameterAsDeprecated('separator'); + if (!$date || !($time = strtotime($date))) return $date;