diff options
Diffstat (limited to '')
-rw-r--r-- | conf/common.inc.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/conf/common.inc.php b/conf/common.inc.php index c4884d6..165c73f 100644 --- a/conf/common.inc.php +++ b/conf/common.inc.php | |||
@@ -3,6 +3,4 @@ | |||
3 | require_once 'config.php'; | 3 | require_once 'config.php'; |
4 | 4 | ||
5 | $CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']); | 5 | $CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']); |
6 | $CONFIG['weburl'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']); | 6 | $CONFIG['weburl'] = preg_replace('/(?<=\/)[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']); |
7 | |||
8 | ?> | ||