From e5849517d07b989a24d38cb98ff860dd5e9ae975 Mon Sep 17 00:00:00 2001 From: topper727 Date: Fri, 4 Apr 2014 01:40:55 -0400 Subject: Update lcdproc_client.php Fixed the LED4 to show gateway status on CrystalFontz displays. Please update version number --- config/lcdproc-dev/lcdproc_client.php | 1 + 1 file changed, 1 insertion(+) (limited to 'config/lcdproc-dev') diff --git a/config/lcdproc-dev/lcdproc_client.php b/config/lcdproc-dev/lcdproc_client.php index 3337052c..5306c903 100644 --- a/config/lcdproc-dev/lcdproc_client.php +++ b/config/lcdproc-dev/lcdproc_client.php @@ -513,6 +513,7 @@ 1 = All gateway up */ global $g; global $config; + $a_gateways = return_gateways_array(); $gateways_status = array(); $gateways_status = return_gateways_status(true); foreach ($a_gateways as $gname => $gateway) -- cgit v1.2.3 From a890380266da7f589b809701bd3d0e8ac715e82f Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 9 May 2014 14:21:06 -0400 Subject: Fix call-time pass-by-reference in lcdproc-dev, bump --- config/lcdproc-dev/lcdproc.inc | 8 ++++---- config/lcdproc-dev/lcdproc.xml | 8 ++++---- config/lcdproc-dev/lcdproc_screens.xml | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'config/lcdproc-dev') diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc index 8b3ce28f..00768cd7 100644 --- a/config/lcdproc-dev/lcdproc.inc +++ b/config/lcdproc-dev/lcdproc.inc @@ -58,17 +58,17 @@ fclose($handle); chmod($file, 0755); } - function before_form_lcdproc($pkg) { + function before_form_lcdproc(&$pkg) { global $config; config_lock(); config_unlock(); } - function before_form_lcdproc_screens($pkg) { + function before_form_lcdproc_screens(&$pkg) { global $config; config_lock(); config_unlock(); } - function validate_form_lcdproc($post, $input_errors) { + function validate_form_lcdproc($post, &$input_errors) { if($post['comport']) { switch($post['comport']) { case "none": @@ -126,7 +126,7 @@ } } } - function validate_form_lcdproc_screens($post, $input_errors) { + function validate_form_lcdproc_screens($post, &$input_errors) { // No validation required ?! } function sync_package_lcdproc_screens() { diff --git a/config/lcdproc-dev/lcdproc.xml b/config/lcdproc-dev/lcdproc.xml index cf816d53..588b898b 100644 --- a/config/lcdproc-dev/lcdproc.xml +++ b/config/lcdproc-dev/lcdproc.xml @@ -1,8 +1,8 @@ - Services: LCDproc 0.5.6 pkg v. 0.9.7 + Services: LCDproc 0.5.6 pkg v. 0.9.9 lcdproc - 0.5.6 pkg v. 0.9.7 + 0.5.6 pkg v. 0.9.9 Save /usr/local/pkg/lcdproc.inc @@ -658,10 +658,10 @@ - before_form_lcdproc(&$pkg); + before_form_lcdproc($pkg); - validate_form_lcdproc($_POST, &$input_errors); + validate_form_lcdproc($_POST, $input_errors); sync_package_lcdproc(); diff --git a/config/lcdproc-dev/lcdproc_screens.xml b/config/lcdproc-dev/lcdproc_screens.xml index f7c70086..9f4a8e2e 100644 --- a/config/lcdproc-dev/lcdproc_screens.xml +++ b/config/lcdproc-dev/lcdproc_screens.xml @@ -106,10 +106,10 @@ - before_form_lcdproc_screens(&$pkg); + before_form_lcdproc_screens($pkg); - validate_form_lcdproc_screens($_POST, &$input_errors); + validate_form_lcdproc_screens($_POST, $input_errors); sync_package_lcdproc_screens(); -- cgit v1.2.3