From 692c7b307bb959a3b0ac56b2c8f243af93c42d6d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 6 Apr 2013 01:34:53 +0200 Subject: [PATCH] Added ability to force links to frontend If you ever create a cronjob and you would like to link to a frontend page (you're not supposed to link to the ACP anyway), you MUST set 'forceFrontend' to true. If you fail, there's some special place in hell for you! --- .../install/files/lib/system/request/LinkHandler.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php index 496467f0f8..a4bb5ca57b 100644 --- a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php @@ -66,6 +66,10 @@ class LinkHandler extends SingletonFactory { $appendSession = false; } } + if (isset($parameters['forceFrontend'])) {{ + $isACP = false; + $appendSession = false; + } // remove anchor before parsing if (($pos = strpos($url, '#')) !== false) { -- 2.20.1