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 ++-- pkg_config.10.xml | 2 +- pkg_config.8.xml | 2 +- pkg_config.8.xml.amd64 | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) 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(); diff --git a/pkg_config.10.xml b/pkg_config.10.xml index 11ff93ea..531f37cb 100644 --- a/pkg_config.10.xml +++ b/pkg_config.10.xml @@ -982,7 +982,7 @@ LCD display driver http://www.lcdproc.org/ Utility - lcdproc-0.5.5 + lcdproc-0.5.5 pkg.v.1.0.1 BETA 2.2 seth.mos@dds.nl diff --git a/pkg_config.8.xml b/pkg_config.8.xml index e5f13d38..3e1a7c0e 100644 --- a/pkg_config.8.xml +++ b/pkg_config.8.xml @@ -1287,7 +1287,7 @@ LCD display driver http://www.lcdproc.org/ Utility - lcdproc-0.5.5 + lcdproc-0.5.5 pkg.v.1.0.1 BETA 1.2.1 seth.mos@dds.nl diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64 index 5d5cfa84..6ad058cc 100644 --- a/pkg_config.8.xml.amd64 +++ b/pkg_config.8.xml.amd64 @@ -1274,7 +1274,7 @@ LCD display driver http://www.lcdproc.org/ Utility - lcdproc-0.5.5 + lcdproc-0.5.5 pkg.v.1.0.1 BETA 1.2.1 seth.mos@dds.nl -- cgit v1.2.3