From: Roland Haeder Date: Mon, 6 Apr 2015 00:03:06 +0000 (+0200) Subject: Use getResponseTypeFromSystem() to get 'html' or 'console', what is really needed. X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=361d6012670869f819fa7ce7cebf74676815bf5d;hp=c2a0bbcf575b0ff3417604647ad8db97521bc278 Use getResponseTypeFromSystem() to get 'html' or 'console', what is really needed. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/resolver/command/class_BaseCommandResolver.php b/inc/classes/main/resolver/command/class_BaseCommandResolver.php index 283f5558..c750238d 100644 --- a/inc/classes/main/resolver/command/class_BaseCommandResolver.php +++ b/inc/classes/main/resolver/command/class_BaseCommandResolver.php @@ -85,7 +85,7 @@ class BaseCommandResolver extends BaseResolver { // Is the command empty? Then fall back to default command if (empty($commandName)) { - $commandName = $this->getConfigInstance()->getConfigEntry('default_html_command'); + $commandName = $this->getConfigInstance()->getConfigEntry('default_' . self::getResponseTypeFromSystem() . '_command'); } // END - if // Check if command is valid @@ -123,7 +123,7 @@ class BaseCommandResolver extends BaseResolver { // Is the command empty? Then fall back to default command if (empty($commandName)) { - $commandName = $this->getConfigInstance()->getConfigEntry('default_html_command'); + $commandName = $this->getConfigInstance()->getConfigEntry('default_' . self::getResponseTypeFromSystem() . '_command'); } // END - if // Check if command is valid