Fixed forceFrontend Parameter
authorMarcel Werk <burntime@woltlab.com>
Fri, 12 Apr 2013 12:58:35 +0000 (14:58 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 12 Apr 2013 12:58:35 +0000 (14:58 +0200)
wcfsetup/install/files/lib/system/request/LinkHandler.class.php

index c9da8e77dd5690b36bf81010d72e714d67bf243c..4b62fbd709ae21e4920a90c4acd88969f28debec 100644 (file)
@@ -66,9 +66,12 @@ class LinkHandler extends SingletonFactory {
                                $appendSession = false;
                        }
                }
-               if (!empty($parameters['forceFrontend']) && $isACP) {
-                       $isACP = false;
-                       $appendSession = false;
+               if (isset($parameters['forceFrontend'])) {
+                       if ($parameters['forceFrontend'] && $isACP) {
+                               $isACP = false;
+                               $appendSession = false;
+                       }
+                       unset($parameters['forceFrontend']);
                }
                
                // remove anchor before parsing