From 6cb41061cf0a8f0b937ec4be9304fc32e5af8f0d Mon Sep 17 00:00:00 2001 From: aFolletete Date: Thu, 6 Oct 2011 09:39:45 +0000 Subject: [PATCH] // fix norm git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9086 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Tools.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/Tools.php b/classes/Tools.php index a97b2148f..162733bd8 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -481,6 +481,7 @@ class ToolsCore * @param string $date Date to display format UNIX * @param integer $id_lang Language id * @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 = '-') @@ -491,7 +492,8 @@ class ToolsCore die (self::displayError('Invalid date')); $context = Context::getContext(); - return date($full ? $context->language->date_format_full : $context->language->date_format_lite, $time); + $date_format = ($full ? $context->language->date_format_full : $context->language->date_format_lite); + return date($date_format, $time); } /**