Fixed a bug related modifying resource path

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9307 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-09-23 07:02:22 +00:00
parent 0facd69e7f
commit 2eac6791a0

View file

@ -487,7 +487,7 @@
function _getRelativeDir($path)
{
$fileDir = dirname(strtr(realpath($this->file),'\\','/'));
if($path{0} != '/') $path = strtr(realpath($fileDir.'/'.$path),'\\','/'));
if($path{0} != '/') $path = strtr(realpath($fileDir.'/'.$path),'\\','/');
$path = preg_replace('/^'.preg_quote(_XE_PATH_,'/').'/', '', $path);
$path = ltrim($path, '/');