*/
public function getBasePath()
{
- return $this->config->get('system', 'basepath');
+ // Don't use the basepath of the config table for basepath (it should always be the config-file one)
+ return $this->config->getCache()->get('system', 'basepath');
}
/**
// but we need "view" module for stylesheet
if ($this->getMode()->isInstall() && $this->module !== 'install') {
$this->internalRedirect('install');
- } elseif (!$this->getMode()->has(App\Mode::MAINTENANCEDISABLED) && $this->module !== 'maintenance') {
+ } elseif (!$this->getMode()->isInstall() && !$this->getMode()->has(App\Mode::MAINTENANCEDISABLED) && $this->module !== 'maintenance') {
$this->internalRedirect('maintenance');
} else {
$this->checkURL();