From 323e5785a8cdf8eae5f6c048cba29d5275a4f5ee Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 23 Nov 2007 12:10:29 +0000 Subject: [PATCH] Closes #273 Environment Button Disabling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7872 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_environment.inc | 6 ++++-- plugins/personal/environment/environment.tpl | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 0fa8a76da..4434f9cbc 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -603,8 +603,10 @@ class environment extends plugin } /* Append List to smarty*/ - $smarty->assign("gotoLogonScripts", $this->printOutLogonScripts()); - $smarty->assign("gotoLogonScriptKeys",array_flip($this->printOutLogonScripts())); + $ls = $this->printOutLogonScripts(); + $smarty->assign("gotoLogonScripts", $ls); + $smarty->assign("gotoLogonScriptKeys",array_flip($ls)); + $smarty->assign("gotoLogonScriptKeysCnt",count($ls)); /* In this section server shares will be defined * A user can select one of the given shares and a mount point diff --git a/plugins/personal/environment/environment.tpl b/plugins/personal/environment/environment.tpl index 952f72254..bbaa863bd 100644 --- a/plugins/personal/environment/environment.tpl +++ b/plugins/personal/environment/environment.tpl @@ -227,10 +227,10 @@ {/render} {render acl=$gotoLogonScriptACL} - + {/render} {render acl=$gotoLogonScriptACL} - + {/render} -- 2.30.2