Remove obsolete workaround for the 2.1 to 3.0 upgrade from RoutingCacheBuilder
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 20 May 2022 13:51:17 +0000 (15:51 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 11:46:50 +0000 (13:46 +0200)
wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php

index 6070287a7078f3d56ad2f36aa2c0e5fd7d4f4a47..3e62a3acfa66ff802b977da8b7bbabf4207f13a2 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace wcf\system\cache\builder;
 
-use wcf\acp\page\ArticleListPage;
 use wcf\data\application\Application;
 use wcf\data\page\PageCache;
 use wcf\page\CmsPage;
@@ -353,10 +352,7 @@ class RoutingCacheBuilder extends AbstractCacheBuilder
             if ($application->packageID == 1) {
                 // handle WCF
                 $page = PageCacheBuilder::getInstance()->getData([], 'landingPage');
-                if ($page === null) {
-                    // invalid cache data, e.g. during upgrade 2.1 -> 3.0
-                    $controller = ArticleListPage::class;
-                } elseif ($page->controller) {
+                if ($page->controller) {
                     $controller = $page->controller;
                 } else {
                     $controller = '__WCF_CMS__' . $page->pageID;