From: hickert Date: Tue, 11 May 2010 09:26:13 +0000 (+0000) Subject: Removed unused smarty assignments X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4317580798daf31afbb87499d7bc7346d180c8be;p=gosa.git Removed unused smarty assignments git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18361 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/addons/configViewer/class_configViewer.inc b/gosa-core/plugins/addons/configViewer/class_configViewer.inc index 99a34440b..c2231037b 100644 --- a/gosa-core/plugins/addons/configViewer/class_configViewer.inc +++ b/gosa-core/plugins/addons/configViewer/class_configViewer.inc @@ -41,7 +41,7 @@ class configViewer extends management $all = $this->config->configRegistry->getAllProperties(); foreach($all as $prop){ $post = "{$prop->getClass()}:{$prop->getName()}"; - if(isset($_POST[$post]) && !in_array($prop->getStatus(),array('removed'))){ + if(isset($_POST[$post]) && $prop->getStatus() != 'removed'){ $prop->setValue(get_post($post)); } } @@ -50,11 +50,8 @@ class configViewer extends management function renderList() { - // Walk trough all properties and check if there posts for us. + // Walk trough all properties and check if we have modified something $all = $this->config->configRegistry->getAllProperties(); - - $htmlTooltips = ""; - $jsTooltips = ""; foreach($all as $prop){ $modified = in_array($prop->getStatus(),array('modified','removed')); if($modified) break; @@ -62,8 +59,6 @@ class configViewer extends management $smarty = get_smarty(); $smarty->assign('is_modified', $modified); - $smarty->assign('htmlTooltips', $htmlTooltips); - $smarty->assign('jsTooltips', $jsTooltips); return(management::renderList()); }