$controllerInstance = null;
// Default controller
- $this->setClassName('ConsoleDefaultController');
+ $this->setClassName('ConsoleDefaultNewsController');
// Generate the class name
//* DEBUG: */ echo __METHOD__.": Controller=".$controllerName;
// ... 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('ConsoleDefaultNewsController');
} else {
- // No news at home page or non-news page
- $this->setClassName('ConsoleDefaultController');
+ // No news at main command or non-news command
+ $this->setClassName('ConsoleDefaultNewsController');
}
//* DEBUG: */ echo ", controller=".$this->getClassName()."<br />\n";