Remove useless `isset()` check before calling `unset()` in LinkHandler::getLink()
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 31 May 2022 10:16:40 +0000 (12:16 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 31 May 2022 10:16:40 +0000 (12:16 +0200)
wcfsetup/install/files/lib/system/request/LinkHandler.class.php

index f19882439680dd4cdf0dbd3c2cb4e469968a2965..5e3899e48bddd31972763bb6b106af40bde4f446 100644 (file)
@@ -136,10 +136,6 @@ class LinkHandler extends SingletonFactory
             $isRaw = $parameters['isRaw'];
             unset($parameters['isRaw']);
         }
-        if (isset($parameters['appendSession'])) {
-            /** @deprecated 3.0 */
-            unset($parameters['appendSession']);
-        }
         if (isset($parameters['isACP'])) {
             $isACP = (bool)$parameters['isACP'];
             unset($parameters['isACP']);
@@ -150,16 +146,16 @@ class LinkHandler extends SingletonFactory
             }
             unset($parameters['forceFrontend']);
         }
-        if (isset($parameters['forceWCF'])) {
-            /** @deprecated 3.0 */
-            unset($parameters['forceWCF']);
-        }
-
         if (isset($parameters['encodeTitle'])) {
             $encodeTitle = $parameters['encodeTitle'];
             unset($parameters['encodeTitle']);
         }
 
+        /** @deprecated 3.0 */
+        unset($parameters['appendSession']);
+        /** @deprecated 3.0 */
+        unset($parameters['forceWCF']);
+
         // remove anchor before parsing
         if (($pos = \strpos($url, '#')) !== false) {
             $anchor = \substr($url, $pos);