namespace wcf\system\cache\builder;
-use wcf\acp\page\ArticleListPage;
use wcf\data\application\Application;
use wcf\data\page\PageCache;
use wcf\page\CmsPage;
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;