diff --git a/module/install/control.php b/module/install/control.php index 69f0163f01..6a9a8fa02b 100644 --- a/module/install/control.php +++ b/module/install/control.php @@ -21,6 +21,7 @@ class install extends control { if(!defined('IN_INSTALL')) die(); parent::__construct(); + $this->config->webRoot = $this->install->getWebRoot(); } /** diff --git a/module/install/model.php b/module/install/model.php index 5437503727..2399566551 100644 --- a/module/install/model.php +++ b/module/install/model.php @@ -144,7 +144,7 @@ class installModel extends model */ public function getWebRoot() { - return rtrim(str_replace('\\', '/', pathinfo($_SERVER['SCRIPT_NAME'], PATHINFO_DIRNAME)), '/') . '/'; + return rtrim(str_replace('\\', '/', pathinfo($_SERVER['PHP_SELF'], PATHINFO_DIRNAME)), '/') . '/'; } /**