mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fixed a bug related modifying resource path
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9305 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
03882f9a13
commit
a5771de12c
1 changed files with 2 additions and 2 deletions
|
|
@ -486,8 +486,8 @@
|
|||
|
||||
function _getRelativeDir($path)
|
||||
{
|
||||
$fileDir = dirname(realpath($this->file));
|
||||
if($path{0} != '/') $path = realpath($fileDir.'/'.$path);
|
||||
$fileDir = dirname(strtr(realpath($this->file),'\\','/'));
|
||||
if($path{0} != '/') $path = strtr(realpath($fileDir.'/'.$path,'\\','/'));
|
||||
|
||||
$path = preg_replace('/^'.preg_quote(_XE_PATH_,'/').'/', '', $path);
|
||||
$path = ltrim($path, '/');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue