]> git.mxchange.org Git - mailer.git/blobdiff - inc/classes/main/resolver/web/class_WebCommandResolver.php
Launcher scripts updated
[mailer.git] / inc / classes / main / resolver / web / class_WebCommandResolver.php
index fa52125d68a944b13b6a37e3fac32c6b9fabea51..4b8a3bacf369437126f3f021f5fb0b95ef7617f0 100644 (file)
@@ -36,12 +36,6 @@ class WebCommandResolver extends BaseResolver implements CommandResolver {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Set part description
-               $this->setObjectDescription("Resolver for local web commands");
-
-               // Create unique ID number
-               $this->generateUniqueId();
-
                // Set prefix to "Web"
                $this->setCommandPrefix("Web");
        }
@@ -94,7 +88,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 +175,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));