From d4b90b36268048a2c1c90512ce4087f4bd574b14 Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 9 May 2014 14:19:08 -0400 Subject: Fix call-time pass-by-reference in lcdproc --- config/lcdproc/lcdproc.inc | 8 ++++---- config/lcdproc/lcdproc.xml | 6 +++--- config/lcdproc/lcdproc_screens.xml | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'config/lcdproc') diff --git a/config/lcdproc/lcdproc.inc b/config/lcdproc/lcdproc.inc index 1c628c6a..760732df 100644 --- a/config/lcdproc/lcdproc.inc +++ b/config/lcdproc/lcdproc.inc @@ -72,7 +72,7 @@ chmod($file, 0755); } - function before_form_lcdproc($pkg) { + function before_form_lcdproc(&$pkg) { global $config; config_lock(); @@ -80,7 +80,7 @@ config_unlock(); } - function before_form_lcdproc_screens($pkg) { + function before_form_lcdproc_screens(&$pkg) { global $config; config_lock(); @@ -88,7 +88,7 @@ config_unlock(); } - function validate_form_lcdproc($post, $input_errors) { + function validate_form_lcdproc($post, &$input_errors) { if($post['comport']) { switch($post['comport']) { case "none": @@ -155,7 +155,7 @@ } } } - function validate_form_lcdproc_screens($post, $input_errors) { + function validate_form_lcdproc_screens($post, &$input_errors) { // No validation required ?! } diff --git a/config/lcdproc/lcdproc.xml b/config/lcdproc/lcdproc.xml index ba46e941..8f268b49 100644 --- a/config/lcdproc/lcdproc.xml +++ b/config/lcdproc/lcdproc.xml @@ -2,7 +2,7 @@ Services: LCDproc lcdproc - 0.5.2_1-p12 + 0.5.5 pkg.v.1.0.1 Save /usr/local/pkg/lcdproc.inc @@ -363,10 +363,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/lcdproc_screens.xml b/config/lcdproc/lcdproc_screens.xml index b807d9f0..d8cc2382 100644 --- a/config/lcdproc/lcdproc_screens.xml +++ b/config/lcdproc/lcdproc_screens.xml @@ -90,10 +90,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