Change in depracation message and remove smarty modifiers json_encode and json_decode
This commit is contained in:
@@ -2648,7 +2648,7 @@ exit;
|
||||
if ($message === null) {
|
||||
$message = 'The function '.$callee['function'].' (Line '.$callee['line'].') is deprecated and will be removed in the next major version.';
|
||||
}
|
||||
$error = 'Function: '.$callee['function'].'() is deprecated in file: '.$callee['file'].' on line: '.$callee['line'].'<br />';
|
||||
$error = 'Function: <b>'.$callee['function'].'()</b> is deprecated in file: <b>'.$callee['file'].'</b> on line: <b>'.$callee['line'].'</b><br />';
|
||||
|
||||
Tools::throwDeprecated($error, $message, $class);
|
||||
}
|
||||
|
||||
@@ -93,8 +93,6 @@ smartyRegisterFunction($smarty, 'function', 'd', 'smartyDieObject'); // Debug on
|
||||
smartyRegisterFunction($smarty, 'function', 'l', 'smartyTranslate', false);
|
||||
smartyRegisterFunction($smarty, 'function', 'hook', 'smartyHook');
|
||||
smartyRegisterFunction($smarty, 'function', 'toolsConvertPrice', 'toolsConvertPrice');
|
||||
smartyRegisterFunction($smarty, 'modifier', 'json_encode', 'json_encode');
|
||||
smartyRegisterFunction($smarty, 'modifier', 'json_decode', 'json_decode');
|
||||
smartyRegisterFunction($smarty, 'function', 'dateFormat', array('Tools', 'dateFormat'));
|
||||
smartyRegisterFunction($smarty, 'function', 'convertPrice', array('Product', 'convertPrice'));
|
||||
smartyRegisterFunction($smarty, 'function', 'convertPriceWithCurrency', array('Product', 'convertPriceWithCurrency'));
|
||||
|
||||
Reference in New Issue
Block a user