I board a small mistake I notice used to solve just by changing preg_replace preg_replace_callback put his put me another error that I board not understand if someone would have the privilege to explain the error I thank in advance.
here is the error
Warning: preg_replace_callback(): Requires argument 2, 'stripslashes('\1').mb_convert_case(stripslashes('\2'),MB_CASE_UPPER, 'UTF-8')', to be a valid callback in /htdocs/system/ext/Smarty/libs/plugins/modifier.capitalize.php on line 33
Warning: preg_replace_callback(): Requires argument 2, 'stripslashes('\1').mb_convert_case(stripslashes('\3'),MB_CASE_UPPER, 'UTF-8')', to be a valid callback in /htdocs/system/ext/Smarty/libs/plugins/modifier.capitalize.php on line 43
line 33
$upper_string = preg_replace_callback("!(^|[^\p{L}'])([\p{Ll}])!eS" . Smarty::$_UTF8_MODIFIER, "stripslashes('\\1').mb_convert_case(stripslashes('\\2'),MB_CASE_UPPER, '" . addslashes(Smarty::$_CHARSET) . "')", $string);
}
line 43
$upper_string = preg_replace_callback("!((^|\s)['\"])(\w)!e" . Smarty::$_UTF8_MODIFIER, "stripslashes('\\1').mb_convert_case(stripslashes('\\3'),MB_CASE_UPPER, '" . addslashes(Smarty::$_CHARSET) . "')", $upper_string);
return $upper_string;
}
Thank you