Remove useless temporary in RoutingCacheBuilder::getCustomUrls()
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 2 Jun 2022 10:09:48 +0000 (12:09 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 2 Jun 2022 10:09:48 +0000 (12:09 +0200)
wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php

index 905bbe935d4d63fc5c2ca70d1fac993fcd002b1e..d2a219ab4c757fcdf7716af119876bfaf1ff4685 100644 (file)
@@ -272,8 +272,7 @@ class RoutingCacheBuilder extends AbstractCacheBuilder
 
         foreach ($rows as $row) {
             $customUrl = FileUtil::removeLeadingSlash(FileUtil::removeTrailingSlash($row['controllerCustomURL']));
-            $packageID = $row['applicationPackageID'];
-            $abbreviation = ApplicationHandler::getInstance()->getAbbreviation($packageID);
+            $abbreviation = ApplicationHandler::getInstance()->getAbbreviation($row['applicationPackageID']);
 
             if (isset($row['controller'])) {
                 $data['lookup'][$abbreviation][$customUrl] = $row['controller'];