[-] Core: upgrade smarty to 3.1.13

This commit is contained in:
Rémi Gaillard committed 2013-02-13 14:30:45 +01:00
1 parent cd5faf8932
commit ec98e4630f
27 files changed
+2139 -1811

No files matched your search

@@ -35,7 +35,7 @@ function smarty_modifier_date_format($string, $format=null, $default_date='', $f
* Include the {@link shared.make_timestamp.php} plugin
*/
require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
if ($string != '') {
if ($string != '' && $string != '0000-00-00' && $string != '0000-00-00 00:00:00') {
$timestamp = smarty_make_timestamp($string);
} elseif ($default_date != '') {
$timestamp = smarty_make_timestamp($default_date);