From 149b7957a5bcdaf6f6cec821a40bc9becfbcd286 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 27 May 2022 13:58:08 +0200 Subject: [PATCH] Shorten overly long line in RoutingCacheBuilder --- .../lib/system/cache/builder/RoutingCacheBuilder.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 6070287a70..9dce4d8973 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php @@ -297,7 +297,11 @@ class RoutingCacheBuilder extends AbstractCacheBuilder $cmsIdentifier = '__WCF_CMS__' . $row['pageID'] . '-' . ($row['languageID'] ?: 0); // Discard the custom url if this CMS page is the landing page of its associated app. - if (!empty($landingPages[$abbreviations[$packageID]]) && $landingPages[$abbreviations[$packageID]][0] === '__WCF_CMS__' . $row['pageID'] && !$row['languageID']) { + if ( + !empty($landingPages[$abbreviations[$packageID]]) + && $landingPages[$abbreviations[$packageID]][0] === '__WCF_CMS__' . $row['pageID'] + && !$row['languageID'] + ) { $customUrl = ''; } $data['reverse'][$abbreviations[$packageID]][$cmsIdentifier] = $customUrl; -- 2.20.1