Code sync from ship-simu code (all class config entries must end with _class!)
[mailer.git] / inc / classes / main / resolver / web / class_WebCommandResolver.php
index fa52125d68a944b13b6a37e3fac32c6b9fabea51..f4b87a2b30c7967e36bc25d5fc7e15877e6834f9 100644 (file)
@@ -94,7 +94,7 @@ class WebCommandResolver extends BaseResolver implements CommandResolver {
                // Test if the required parameter is set
                try {
                        // This goes fine so let's resolv the command
-                       $commandName = $requestInstance->getRequestElement($this->getConfigInstance()->readConfig('command_parameter'));
+                       $commandName = $requestInstance->getRequestElement("page");
 
                        // Is the command empty? Then fall back to default command
                        if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_command');
@@ -181,7 +181,7 @@ class WebCommandResolver extends BaseResolver implements CommandResolver {
                                // Still not found?
                                throw new InvalidCommandException(array($this, $defaultCommand), self::EXCEPTION_INVALID_COMMAND);
                        }
-               }
+               } // END - if
 
                // Initiate the command
                $commandInstance = ObjectFactory::createObjectByName($className, array($this));