diff --git a/classes/template/TemplateHandler.class.php b/classes/template/TemplateHandler.class.php index b413b167d..53b3a2046 100644 --- a/classes/template/TemplateHandler.class.php +++ b/classes/template/TemplateHandler.class.php @@ -61,7 +61,7 @@ $this->filename = $tpl_filename; $this->file = $tpl_file; - $this->web_path = $this->xe_path.preg_replace('/^'.preg_quote(_XE_PATH_,'/').'/','',$this->path); + $this->web_path = $this->xe_path.'/'.preg_replace('@^'.preg_quote(_XE_PATH_,'@').'|\./@','',$this->path); // get compiled file name $hash = md5($this->file . __ZBXE_VERSION__);