From: Alexander Ebert Date: Fri, 5 Apr 2013 23:34:53 +0000 (+0200) Subject: Added ability to force links to frontend X-Git-Tag: 2.0.0_Beta_1~390^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=692c7b307bb959a3b0ac56b2c8f243af93c42d6d;p=GitHub%2FWoltLab%2FWCF.git 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! --- 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) {