From: Roland Häder Date: Sat, 18 Jul 2009 07:28:52 +0000 (+0000) Subject: Now DefaultNewsController is the default controller X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=87cc8a475ec3a28e8f2f661bf4a7db7bc6a885e6;p=core.git Now DefaultNewsController is the default controller --- diff --git a/inc/classes/main/resolver/controller/class_BaseControllerResolver.php b/inc/classes/main/resolver/controller/class_BaseControllerResolver.php index ce2da516..23e449ac 100644 --- a/inc/classes/main/resolver/controller/class_BaseControllerResolver.php +++ b/inc/classes/main/resolver/controller/class_BaseControllerResolver.php @@ -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);