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 ce2da51..23e449a 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);