git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7711 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2010-09-28 00:55:06 +00:00
parent 8c71b736e7
commit 7e155c8b19

View file

@ -51,9 +51,10 @@
// set template file infos.
$info = pathinfo($tpl_file);
$this->path = preg_replace('/^\.\//','',$info['dirname']).'/';
$this->filename = $info['basename'];
$this->file = $this->path.$this->filename;
//$this->path = preg_replace('/^\.\//','',$info['dirname']).'/';
$this->path = $tpl_path;
$this->filename = $tpl_filename;
$this->file = $tpl_file;
$this->xe_path = preg_replace('/([^\.^\/]+)\.php$/i','',$_SERVER['SCRIPT_NAME']);
$this->web_path = $this->xe_path.str_replace(_XE_PATH_,'',$this->path);