X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fclasses%2Fmain%2Fresolver%2Fcommand%2Fweb%2Fclass_;h=f276d4848d29392fbd8ba78c856f81412959c072;hb=4c3ef4749d3f2f2e06c50e674c1b7481faeb2d42;hp=ea9c2c0941ebe1e29268402fadd6b9cd62823b21;hpb=361e6320e50a8bb1a3ccb675388b8042361669ae;p=core.git diff --git a/inc/classes/main/resolver/command/web/class_ b/inc/classes/main/resolver/command/web/class_ index ea9c2c09..f276d484 100644 --- a/inc/classes/main/resolver/command/web/class_ +++ b/inc/classes/main/resolver/command/web/class_ @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 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;