From 87cc8a475ec3a28e8f2f661bf4a7db7bc6a885e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 18 Jul 2009 07:28:52 +0000 Subject: [PATCH] Now DefaultNewsController is the default controller --- .../main/resolver/controller/class_BaseControllerResolver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5