diff --git a/module/install/control.php b/module/install/control.php index cfda7b6c35..a5212c0354 100644 --- a/module/install/control.php +++ b/module/install/control.php @@ -23,7 +23,7 @@ class install extends control parent::__construct(); $this->app->loadLang('user'); $this->app->loadLang('admin'); - $this->config->webRoot = $this->install->getWebRoot(); + $this->config->webRoot = getWebRoot(); } /** diff --git a/module/install/model.php b/module/install/model.php index d3864c1b81..c712c4839d 100644 --- a/module/install/model.php +++ b/module/install/model.php @@ -202,17 +202,6 @@ class installModel extends model return $iniInfo; } - /** - * Get web root. - * - * @access public - * @return string - */ - public function getWebRoot() - { - return rtrim(str_replace('\\', '/', pathinfo($_SERVER['PHP_SELF'], PATHINFO_DIRNAME)), '/') . '/'; - } - /** * Check config ok or not. * diff --git a/module/install/view/step2.html.php b/module/install/view/step2.html.php index d782b23903..31c7a623b0 100644 --- a/module/install/view/step2.html.php +++ b/module/install/view/step2.html.php @@ -18,10 +18,6 @@