'page_with_news' is deprecated now
authorRoland Häder <roland@mxchange.org>
Sat, 18 Jul 2009 07:00:34 +0000 (07:00 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 18 Jul 2009 07:00:34 +0000 (07:00 +0000)
inc/classes/main/resolver/controller/class_BaseControllerResolver.php
inc/classes/main/resolver/controller/web/class_WebControllerResolver.php

index 964024d..ce2da51 100644 (file)
@@ -103,14 +103,8 @@ class BaseControllerResolver extends BaseResolver {
                                // This class does exist. :-)
                                $isValid = true;
                        } elseif (($this->getClassName() != $this->controllerPrefix.'DefaultController') && ($this->getClassName() != $this->controllerPrefix.'DefaultNewsController')) {
                                // This class does exist. :-)
                                $isValid = true;
                        } elseif (($this->getClassName() != $this->controllerPrefix.'DefaultController') && ($this->getClassName() != $this->controllerPrefix.'DefaultNewsController')) {
-                               // Do we have news?
-                               if ($this->getConfigInstance()->readConfig('page_with_news') == $this->getApplicationInstance()->getRequestInstance()->getRequestElement('page')) {
-                                       // Yes, display news in home then set default controller with news
-                                       $this->setClassName($this->controllerPrefix . 'DefaultNewsController');
-                               } else {
-                                       // No news at home page or non-news page
-                                       $this->setClassName($this->controllerPrefix . 'DefaultController');
-                               }
+                               // Set default controller
+                               $this->setClassName($this->controllerPrefix . 'DefaultController');
                        } else {
                                // All is tried, give it up here
                                throw new DefaultControllerException($this, self::EXCEPTION_DEFAULT_CONTROLLER_GONE);
                        } else {
                                // All is tried, give it up here
                                throw new DefaultControllerException($this, self::EXCEPTION_DEFAULT_CONTROLLER_GONE);
index 65dc4d9..a308410 100644 (file)
@@ -137,9 +137,6 @@ class WebControllerResolver extends BaseControllerResolver implements Controller
 
                        // ... and set it
                        $this->setClassName($className);
 
                        // ... and set it
                        $this->setClassName($className);
-               } elseif ($this->getConfigInstance()->readConfig('page_with_news') == $this->getApplicationInstance()->getRequestInstance()->getRequestElement('page')) {
-                       // Yes, display news in home then set default controller with news
-                       $this->setClassName('WebDefaultNewsController');
                } else {
                        // No news at home page or non-news page
                        $this->setClassName('WebDefaultController');
                } else {
                        // No news at home page or non-news page
                        $this->setClassName('WebDefaultController');