mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
절대경로 반환이 제대로 처리되지 못하는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4336 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
379f3f4758
commit
a99dd0e869
1 changed files with 11 additions and 11 deletions
|
|
@ -10,12 +10,12 @@
|
||||||
class FileHandler extends Handler {
|
class FileHandler extends Handler {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 대상 파일이름이나 디렉토리의 위치를 확인함
|
* @brief 대상 파일, 디렉토리의 절대경로를 반환
|
||||||
**/
|
**/
|
||||||
function getRealPath($source) {
|
function getRealPath($source) {
|
||||||
if(substr($source,0,1)=='/') return $source;
|
$temp = explode('/', $source);
|
||||||
if(substr($source,0,2)=='./') $source = substr($source,2);
|
if($temp[0] == '.') $source = _XE_PATH_.substr($source, 2);
|
||||||
return _XE_PATH_.$source;
|
return $source;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue