From c7fca8ccb2598ce12ae1d74a65706085ec6efe34 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 28 Nov 2015 22:09:31 +0100 Subject: [PATCH] Fixed wcfsetup --- .../system/cache/builder/RoutingCacheBuilder.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.20.1