fix a bug for replacing image path

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9264 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-22 02:15:06 +00:00
parent 586368274d
commit 4cd7969a96

View file

@ -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__);