some minor fixes for the installer

parent a7cc506d
......@@ -269,7 +269,7 @@ class URI {
$path = $alias . (!preg_match('/\/$/', $alias) ? '/' : '');
}
}
$prefix = (bool) CONFIG_SEO_MOD_REWRITE === false || preg_match(self::PATTERN, $path) ? PHP_SELF . '/' : ROOT_DIR;
$prefix = (bool) CONFIG_SEO_MOD_REWRITE === false || preg_match(self::PATTERN, $path) ? PHP_SELF . '/' : (defined('IN_INSTALL') === true ? INSTALLER_ROOT_DIR : ROOT_DIR);
return $prefix . $path;
}
......
......@@ -74,6 +74,12 @@ class Application {
// Pfade zum Theme setzen
define('DESIGN_PATH', INSTALLER_DIR . 'design/');
define('DESIGN_PATH_INTERNAL', ACP3_ROOT_DIR . 'installation/design/');
if (defined('IN_UPDATER') === false) {
define('CONFIG_VERSION', '4.0-dev');
define('CONFIG_SEO_ALIASES', false);
define('CONFIG_SEO_MOD_REWRITE', false);
}
}
/**
......
<div class="alert align-center">
{lang t="errors|file_not_found"}
{lang t="file_not_found"}
</div>
\ No newline at end of file
......@@ -34,10 +34,6 @@ class Install extends \ACP3\Installer\Core\InstallerModuleController {
$navbar[\ACP3\Core\Registry::get('URI')->file]['active'] = true;
}
\ACP3\Core\Registry::get('View')->assign('navbar', $navbar);
define('CONFIG_VERSION', '4.0-dev');
define('CONFIG_SEO_ALIASES', false);
define('CONFIG_SEO_MOD_REWRITE', false);
}
public function actionConfiguration() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment