No news controller, should be deprecated and decided in command init
authorRoland Häder <roland@mxchange.org>
Sat, 18 Jul 2009 06:57:40 +0000 (06:57 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 18 Jul 2009 06:57:40 +0000 (06:57 +0000)
inc/classes/main/resolver/controller/console/class_ConsoleControllerResolver.php

index f241061..39f2c67 100644 (file)
@@ -137,11 +137,8 @@ class ConsoleControllerResolver extends BaseControllerResolver implements Contro
 
                        // ... and set it
                        $this->setClassName($className);
 
                        // ... and set it
                        $this->setClassName($className);
-               } elseif ($this->getConfigInstance()->readConfig('page_with_news') == $this->getApplicationInstance()->getRequestInstance()->getRequestElement('command')) {
-                       // Yes, display news in home then set default controller with news
-                       $this->setClassName('ConsoleDefaultNewsController');
                } else {
                } else {
-                       // No news at home page or non-news page
+                       // No news at main command or non-news command
                        $this->setClassName('ConsoleDefaultController');
                }
                //* DEBUG: */ echo ", controller=".$this->getClassName()."<br />\n";
                        $this->setClassName('ConsoleDefaultController');
                }
                //* DEBUG: */ echo ", controller=".$this->getClassName()."<br />\n";