]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/resolver/command/web/class_
Copyright updated
[core.git] / inc / classes / main / resolver / command / web / class_
index 2f6a2b371d9a5a40bba568b686f5cf10f36e460a..18082a2a11e5e7186333a4a52174ffd68f0e6ca6 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -36,8 +36,8 @@ class Web???CommandResolver extends BaseCommandResolver implements CommandResolv
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Set prefix to "Web"
-               $this->setCommandPrefix("Web");
+               // Set prefix to 'Web'
+               $this->setCommandPrefix('Web');
        }
 
        /**
@@ -89,7 +89,7 @@ class Web???CommandResolver extends BaseCommandResolver implements CommandResolv
                $commandName = $requestInstance->getRequestElement('page');
 
                // Is the command empty? Then fall back to default command
-               if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_web_command');
+               if (empty($commandName)) $commandName = $this->getConfigInstance()->getConfigEntry('default_web_command');
 
                // Check if the command is valid
                if ($this->isCommandValid($commandName) === false) {
@@ -125,7 +125,7 @@ class Web???CommandResolver extends BaseCommandResolver implements CommandResolv
                $commandInstance = null;
 
                // Is the command empty? Then fall back to default command
-               if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_web_command');
+               if (empty($commandName)) $commandName = $this->getConfigInstance()->getConfigEntry('default_web_command');
 
                // Check if the command is valid
                if ($this->isCommandValid($commandName) === false) {
@@ -150,7 +150,7 @@ class Web???CommandResolver extends BaseCommandResolver implements CommandResolv
         */
        private function loadCommand ($commandName) {
                // Cache default command
-               $defaultCommand = $this->getConfigInstance()->readConfig('default_web_command');
+               $defaultCommand = $this->getConfigInstance()->getConfigEntry('default_web_command');
 
                // Init command instance
                $commandInstance = null;