Use `LogicException` instead of `SystemException`
authorAlexander Ebert <ebert@woltlab.com>
Thu, 13 Dec 2018 15:34:44 +0000 (16:34 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 13 Dec 2018 15:34:44 +0000 (16:34 +0100)
wcfsetup/install/files/lib/system/style/StyleHandler.class.php

index 160a471570618df19744079070d79b2c5fa98537..9a29e3e46dace29ead2975666da2e79c9dfaa08e 100644 (file)
@@ -249,7 +249,7 @@ class StyleHandler extends SingletonFactory {
         */
        public function getDefaultStyle() {
                if (!RequestHandler::getInstance()->isACPRequest()) {
-                       throw new SystemException('Illegal request, please use `getStyle()` for frontend requests.');
+                       throw new \LogicException('Illegal request, please use `getStyle()` for frontend requests.');
                }
                
                $styleID = $this->cache['default'];