Unneccessary code removed
[core.git] / inc / classes / main / resolver / command / image / class_ImageCommandResolver.php
index 633a6233f49db4c75309cf53e564e19b6e3cb397..9dca5ec97de1cfcc1a2ad68de43302c6ff28fe39 100644 (file)
@@ -149,9 +149,6 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve
         *                                                                              command class is missing (bad!)
         */
        private function loadCommand ($commandName) {
-               // Cache default command
-               $defaultCommand = $this->getConfigInstance()->readConfig('default_image_command');
-
                // Init command instance
                $commandInstance = null;
 
@@ -161,7 +158,7 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve
                // 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