]> git.mxchange.org Git - core.git/commitdiff
Now DefaultNewsController is the default controller
authorRoland Häder <roland@mxchange.org>
Sat, 18 Jul 2009 07:28:52 +0000 (07:28 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 18 Jul 2009 07:28:52 +0000 (07:28 +0000)
inc/classes/main/resolver/controller/class_BaseControllerResolver.php

index ce2da51695c5c9f8389f0bdbee339bdc00f5ed14..23e449ac913386c2b6092539f41cdfc2d39004b5 100644 (file)
@@ -102,9 +102,9 @@ class BaseControllerResolver extends BaseResolver {
                        if (class_exists($this->getClassName())) {
                                // This class does exist. :-)
                                $isValid = true;
-                       } elseif (($this->getClassName() != $this->controllerPrefix.'DefaultController') && ($this->getClassName() != $this->controllerPrefix.'DefaultNewsController')) {
+                       } elseif ($this->getClassName() != $this->controllerPrefix.'DefaultNewsController') {
                                // Set default controller
-                               $this->setClassName($this->controllerPrefix . 'DefaultController');
+                               $this->setClassName($this->controllerPrefix . 'DefaultNewsController');
                        } else {
                                // All is tried, give it up here
                                throw new DefaultControllerException($this, self::EXCEPTION_DEFAULT_CONTROLLER_GONE);