Resolve notice issue on book now page
This commit is contained in:
@@ -2643,10 +2643,12 @@ exit;
|
||||
$backtrace = debug_backtrace();
|
||||
$callee = next($backtrace);
|
||||
$class = isset($callee['class']) ? $callee['class'] : null;
|
||||
$callee['file'] = isset($callee['file']) ? $callee['file'] : '<undefined>';
|
||||
$callee['line'] = isset($callee['line']) ? $callee['line'] : '<undefined>';
|
||||
if ($message === null) {
|
||||
$message = 'The function '.$callee['function'].' (Line '.$callee['line'].') is deprecated and will be removed in the next major version.';
|
||||
}
|
||||
$error = 'Function <b>'.$callee['function'].'()</b> is deprecated in <b>'.$callee['file'].'</b> on line <b>'.$callee['line'].'</b><br />';
|
||||
$error = 'Function: '.$callee['function'].'() is deprecated in file: '.$callee['file'].' on line: '.$callee['line'].'<br />';
|
||||
|
||||
Tools::throwDeprecated($error, $message, $class);
|
||||
}
|
||||
|
||||
@@ -93,8 +93,8 @@ 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', array('Tools', 'jsonEncode'));
|
||||
smartyRegisterFunction($smarty, 'modifier', 'json_decode', array('Tools', 'jsonDecode'));
|
||||
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