From 349b25586c193db6fb3d5808ca6da5348b6df921 Mon Sep 17 00:00:00 2001 From: zero Date: Wed, 16 Jul 2008 10:16:39 +0000 Subject: [PATCH] =?UTF-8?q?tools=EC=97=90=20=EC=9C=84=EC=B9=98=ED=95=9C=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=EA=B7=B8=EB=9E=A8=EC=9D=84=20=EC=8B=A4?= =?UTF-8?q?=ED=96=89=EC=8B=9C=20getScriptPath()=EA=B0=80=20=EC=98=A4?= =?UTF-8?q?=EB=8F=99=EC=9E=91=ED=95=98=EB=8A=94=20=EA=B2=83=EC=9D=84=20?= =?UTF-8?q?=EB=A7=89=EB=8A=94=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4375 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- config/func.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/func.inc.php b/config/func.inc.php index 1570b3fb4..9430d113b 100644 --- a/config/func.inc.php +++ b/config/func.inc.php @@ -515,7 +515,7 @@ **/ function getScriptPath() { static $url = null; - if($url == null) $url = preg_replace('/index.php$/i','',str_replace('\\','/',$_SERVER['SCRIPT_NAME'])); + if($url == null) $url = preg_replace('/\/tools\/([a-z\_]+)/i','',preg_replace('/index.php$/i','',str_replace('\\','/',$_SERVER['SCRIPT_NAME']))); return $url; }