[icinga-checkins] icinga.org: icinga-web/master: * Readded json decoding of parameters for cronk loader

git at icinga.org git at icinga.org
Fri Jan 28 13:21:14 CET 2011


Module: icinga-web
Branch: master
Commit: 71167f2d9b091126b9b040b2316ec88678e41e16
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=71167f2d9b091126b9b040b2316ec88678e41e16

Author: Marius Hein <marius.hein at netways.de>
Date:   Fri Jan 28 10:32:25 2011 +0100

* Readded json decoding of parameters for cronk loader

---

 .../views/System/CronkLoaderSuccessView.class.php  |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/app/modules/Cronks/views/System/CronkLoaderSuccessView.class.php b/app/modules/Cronks/views/System/CronkLoaderSuccessView.class.php
index 8fade7f..1025abe 100755
--- a/app/modules/Cronks/views/System/CronkLoaderSuccessView.class.php
+++ b/app/modules/Cronks/views/System/CronkLoaderSuccessView.class.php
@@ -22,13 +22,13 @@ class Cronks_System_CronkLoaderSuccessView extends CronksBaseView
 				
 				if (array_key_exists('ae:parameter', $cronk) && is_array($cronk['ae:parameter'])) {
 					
-//					foreach($cronk['ae:parameter'] as $key=>$param) {
-//						if(is_array($param) || is_object($param)) {
-//							$param = json_encode($param);
-//							$cronk['ae:parameter'][$key] = $param;
-//							$parameters[$key] = $param;
-//						}
-//					}
+					foreach($cronk['ae:parameter'] as $key=>$param) {
+						if(is_array($param) || is_object($param)) {
+							$param = json_encode($param);
+							$cronk['ae:parameter'][$key] = $param;
+							$parameters[$key] = $param;
+						}
+					}
 
 					$parameters = (array)$cronk['ae:parameter']
 					+ $parameters





More information about the icinga-checkins mailing list