Added error handling again
authorAlexander Ebert <ebert@woltlab.com>
Wed, 26 Dec 2012 02:57:35 +0000 (03:57 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 26 Dec 2012 02:57:35 +0000 (03:57 +0100)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 6c265f166ce67fb0227a348a6a1616b5f931d892..32839ea4f96d86d5498d6dc5ff334160472a6158 100644 (file)
@@ -69,7 +69,7 @@ class RequestHandler extends SingletonFactory {
         * @param       string          $application
         */
        protected function buildRequest($application) {
-               //try {
+               try {
                        $routeData = RouteHandler::getInstance()->getRouteData();
                        
                        // handle landing page for frontend requests
@@ -109,10 +109,10 @@ class RequestHandler extends SingletonFactory {
                        }
                        
                        $this->activeRequest = new Request($classData['className'], $classData['controller'], $classData['pageType']);
-               //}
-               //catch (SystemException $e) {
-               //      throw new IllegalLinkException();
-               //}
+               }
+               catch (SystemException $e) {
+                       throw new IllegalLinkException();
+               }
        }
        
        /**