Commit 49fd4d23 authored by  JosephK's avatar JosephK

Fix notices preg_replace_callback

parent f0bc3ea4
......@@ -20,7 +20,7 @@ function hook_recovery_render_tools($data)
if(!function_exists(translate)) {
function translate($matches) { return t($matches[1]); }
}
$html = preg_replace_callback('/\{\'(.+)\'\|t\}/i', translate, $html );
$html = preg_replace_callback('/\{\'(.+)\'\|t\}/i', 'translate', $html );
if (isset ($GLOBALS['config']['email'])) {
$html = str_replace('value=""', 'value="' . htmlentities($GLOBALS['config']['email']) . '"', $html);
......
......@@ -13,7 +13,7 @@ function tags_advanced_config($taData)
if(!function_exists(translate)) {
function translate($matches) { return t($matches[1]); }
}
$html = preg_replace_callback('/\{\'(.+)\'\|t\}/i', translate, $html );
$html = preg_replace_callback('/\{\'(.+)\'\|t\}/i', 'translate', $html );
if(!isset($taData) || empty($taData)) {
$taData = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment