use wcf\system\cache\builder\PackageCacheBuilder;
use wcf\system\exception\AJAXException;
use wcf\system\exception\PermissionDeniedException;
+use wcf\system\exception\SystemException;
use wcf\system\request\RouteHandler;
use wcf\system\session\ACPSessionFactory;
use wcf\system\session\SessionHandler;
// build redirect path
$application = ApplicationHandler::getInstance()->getActiveApplication();
+ if ($application === null) {
+ throw new SystemException("You have aborted the installation, therefore this installation is unusable. You are required to reinstall the software.");
+ }
+
// fallback for unknown host (rescue mode)
if ($application->domainName != $_SERVER['HTTP_HOST']) {
$pageURL = RouteHandler::getProtocol() . $_SERVER['HTTP_HOST'] . RouteHandler::getPath(array('acp'));