From: Alexander Ebert Date: Sat, 28 Nov 2015 21:09:31 +0000 (+0100) Subject: Fixed wcfsetup X-Git-Tag: 3.0.0_Beta_1~2030^2~232 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c7fca8ccb2598ce12ae1d74a65706085ec6efe34;p=GitHub%2FWoltLab%2FWCF.git Fixed wcfsetup --- diff --git a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php index 2e571aa007..01f30355e8 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php @@ -40,6 +40,10 @@ class RoutingCacheBuilder extends AbstractCacheBuilder { 'reverse' => [] ]; + if (!PACKAGE_ID) { + return $data; + } + $applications = ApplicationHandler::getInstance()->getApplications(); $applications[1] = ApplicationHandler::getInstance()->getWCF(); foreach ($applications as $application) { @@ -94,6 +98,10 @@ class RoutingCacheBuilder extends AbstractCacheBuilder { 'reverse' => [] ]; + if (!PACKAGE_ID) { + return $data; + } + // fetch pages with a controller and a custom url $sql = "SELECT controller, controllerCustomURL, packageID FROM wcf".WCF_N."_page