No 'page' in console
[core.git] / inc / classes / main / resolver / controller / console / class_ConsoleControllerResolver.php
index 31dd468..f241061 100644 (file)
@@ -137,7 +137,7 @@ class ConsoleControllerResolver extends BaseControllerResolver implements Contro
 
                        // ... and set it
                        $this->setClassName($className);
-               } elseif ($this->getConfigInstance()->readConfig('page_with_news') == $this->getApplicationInstance()->getRequestInstance()->getRequestElement('page')) {
+               } 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 {