loadController() is now more generic (TODO: check that all other apps works)
[core.git] / inc / classes / main / resolver / command / console / class_ConsoleCommandResolver.php
index 9a212ab7e8da474ed8acee9863adc682bd77d0fb..5dffd57696fbc9374ef9b212f93c0ebc1b5771f5 100644 (file)
@@ -86,7 +86,7 @@ class ConsoleCommandResolver extends BaseCommandResolver implements CommandResol
                $commandInstance = null;
 
                // This goes fine so let's resolve the command
-               $commandName = $requestInstance->getRequestElement('page');
+               $commandName = $requestInstance->getRequestElement('command');
 
                // Is the command empty? Then fall back to default command
                if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_console_command');