Added ability to force links to frontend
authorAlexander Ebert <ebert@woltlab.com>
Fri, 5 Apr 2013 23:34:53 +0000 (01:34 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 5 Apr 2013 23:34:53 +0000 (01:34 +0200)
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!

wcfsetup/install/files/lib/system/request/LinkHandler.class.php

index 496467f0f8bcd289790a607444c3dfd26427ce04..a4bb5ca57b9535d2f5eab14a60c0c64d6cf6494b 100644 (file)
@@ -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) {