From: Tim Düsterhus Date: Fri, 27 May 2022 11:58:08 +0000 (+0200) Subject: Shorten overly long line in RoutingCacheBuilder X-Git-Tag: 6.0.0_Alpha_1~1254 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=149b7957a5bcdaf6f6cec821a40bc9becfbcd286;p=GitHub%2FWoltLab%2FWCF.git Shorten overly long line in RoutingCacheBuilder --- 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;