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