X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fresolver%2Fcommand%2Fweb%2Fclass_WebCommandResolver.php;h=cb23dd1b526e69ae1728684f1019a1d8ea6c4dc7;hp=f4eba1210c43473119c1ba5c3fbbc39e28e74611;hb=30e628a47fce4857aca0a4d80bed59ddc2f5c481;hpb=b060611909838ff17215706692b238f45cfee295 diff --git a/inc/classes/main/resolver/command/web/class_WebCommandResolver.php b/inc/classes/main/resolver/command/web/class_WebCommandResolver.php index f4eba121..cb23dd1b 100644 --- a/inc/classes/main/resolver/command/web/class_WebCommandResolver.php +++ b/inc/classes/main/resolver/command/web/class_WebCommandResolver.php @@ -149,9 +149,6 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver * command class is missing (bad!) */ private function loadCommand ($commandName) { - // Cache default command - $defaultCommand = $this->getConfigInstance()->readConfig('default_web_command'); - // Init command instance $commandInstance = null; @@ -164,7 +161,7 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver // Is this class loaded? if (!class_exists($this->getClassName())) { // Class not found, so throw an exception - throw new InvalidCommandException(array($this, $defaultCommand), self::EXCEPTION_INVALID_COMMAND); + throw new InvalidCommandException(array($this, $commandName), self::EXCEPTION_INVALID_COMMAND); } // END - if // Initiate the command