From 361d6012670869f819fa7ce7cebf74676815bf5d Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 6 Apr 2015 02:03:06 +0200 Subject: [PATCH] Use getResponseTypeFromSystem() to get 'html' or 'console', what is really needed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../main/resolver/command/class_BaseCommandResolver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2