From 758f55e901d46184003e79fed389d0d4d4e00d6b Mon Sep 17 00:00:00 2001 From: Christoph Schulthess Date: Tue, 21 Feb 2017 10:13:51 +0100 Subject: mhpf --- modules-available/debugconfig/page.inc.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'modules-available/debugconfig/page.inc.php') diff --git a/modules-available/debugconfig/page.inc.php b/modules-available/debugconfig/page.inc.php index ea78e3c5..00698d26 100644 --- a/modules-available/debugconfig/page.inc.php +++ b/modules-available/debugconfig/page.inc.php @@ -3,7 +3,7 @@ class Page_debugConfig extends Page { - const DEFAULT_CONFIG = array("enabled" => false, "debugServer" => "127.0.0.1", "port" => 5900); + const DEFAULT_CONFIG = array("enabled" => false, "debugServer" => "127.0.0.1", "port" => 5500); protected function doPreprocess() { @@ -24,9 +24,11 @@ class Page_debugConfig extends Page { $debug_config = $this->getConfig(); Render::addTemplate('debugconfig', array("debugEnabled" => $debug_config["enabled"], "debugServer" => $debug_config["debugServer"], "port" => $debug_config["port"])); - $taskid = Taskmanager::isTask("DispatchRelay"); - if ($taskid !== Null ) - Render::addTemplate('relaystatus', array("taskid" => $taskid)) + if (gettype($taskstatus) == 'array') { + error_log(count($taskstatus)); + } + + //Render::addTemplate('relaystatus', array("taskid" => $taskstatus)); } private function getConfig() @@ -39,7 +41,6 @@ class Page_debugConfig extends Page private function setConfig() { - error_log(request::post('toggleDebug')); $enabled = isset($_POST['toggleDebug']) ? true : false; Property::setRemoteDebugConfig(array('enabled' => $enabled, 'debugServer' => Request::post('debugServer'), 'port' => Request::post('port'))); } -- cgit v1.2.3-55-g7522