Commit 3ad384bf authored by sept_7's avatar sept_7

[EHN] Some enhancement for Smarty initialization, now silence smarty error if...

[EHN] Some enhancement for Smarty initialization, now silence smarty error if $prefs.smarty_notice_reporting is not set
parent b6aa403b
......@@ -40,7 +40,7 @@ class Smarty_Tiki extends Smarty
global $prefs;
if ($tikidomain) { $tikidomain.= '/'; }
$this->template_dir = realpath('templates/');
$this->template_dir = array(realpath('templates/'));
$this->compile_dir = realpath("templates_c/$tikidomain");
$this->config_dir = realpath('configs/');
$this->cache_dir = realpath("templates_c/$tikidomain");
......@@ -58,7 +58,13 @@ class Smarty_Tiki extends Smarty
} else {
$this->disableSecurity();
}
$this->use_sub_dirs = false;
$this->url_overriding_prefix_stack = array();
if (!empty($prefs['smarty_notice_reporting']) and $prefs['smarty_notice_reporting'] === 'y' ) {
$this->error_reporting = E_NOTICE;
} else {
$this->error_reporting = 0;
}
}
function _smarty_include($params) {
......
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