mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 18:02:15 +09:00
sym link일 경우 getScriptPath()가 오동작하던 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4332 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bdc194ab1d
commit
a0991ceeb1
1 changed files with 1 additions and 1 deletions
|
|
@ -474,7 +474,7 @@
|
|||
function getScriptPath() {
|
||||
static $url = null;
|
||||
if($url === null) {
|
||||
$document_root = str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']);
|
||||
$document_root = str_replace('\\','/',realpath($_SERVER['DOCUMENT_ROOT']));
|
||||
$file = str_replace('\\','/',__FILE__);
|
||||
$url = preg_replace('/index.php/i','',str_replace('config/func.inc.php','',str_replace($document_root, '', $file)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue