Fixed wcfsetup
authorAlexander Ebert <ebert@woltlab.com>
Sat, 28 Nov 2015 21:09:31 +0000 (22:09 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 28 Nov 2015 21:09:31 +0000 (22:09 +0100)
wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php

index 2e571aa007ab4be637a00cac08e93e62018ad439..01f30355e8700a614131dcb7258ce33999945df3 100644 (file)
@@ -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