#19160747 Template include 시 path 오류 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7733 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-09-29 02:44:07 +00:00
parent 3565c69f39
commit 156471935d

View file

@ -570,7 +570,8 @@
if(substr($arg,0,2)=='./') $arg = substr($arg,2);
// step1: check files in the template directory
$source_filename = sprintf("%s/%s", dirname($this->file), $arg);
//$source_filename = sprintf("%s/%s", dirname($this->file), $arg);
$source_filename = sprintf("%s/%s", $this->path, $arg);
// step2: check path from root
if(!file_exists($source_filename)) $source_filename = './'.$arg;