[icinga-checkins] icinga.org: icinga-web/master: Fixes external cronk stub configuration

git at icinga.org git at icinga.org
Thu Aug 23 12:47:28 CEST 2012


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

Author: Marius Hein <marius.hein at netways.de>
Date:   Thu Aug 23 12:47:10 2012 +0200

Fixes external cronk stub configuration

---

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

diff --git a/app/modules/Cronks/views/System/CronkLoaderSuccessView.class.php b/app/modules/Cronks/views/System/CronkLoaderSuccessView.class.php
index 8e26c08..5110975 100644
--- a/app/modules/Cronks/views/System/CronkLoaderSuccessView.class.php
+++ b/app/modules/Cronks/views/System/CronkLoaderSuccessView.class.php
@@ -36,14 +36,9 @@ class Cronks_System_CronkLoaderSuccessView extends CronksBaseView {
             $crname = $rd->getParameter('cronk');
             
             /*
-             * Removed accepting external parameters because if some is
-             * changed this is done via cronk build and he does this
-             * in the database. 
-             * 
-             * Ergo: No param handling here, just ignore $rd and
-             * create a plain and empty array.
+             * Allow external initialization of cronk stubs
              */
-            $parameters = array();
+            $parameters = $rd->getParameter('p', array());
             
             if ($model->hasCronk($crname)) {
                 $cronk = $model->getCronk($crname);





More information about the icinga-checkins mailing list