From: hickert Date: Thu, 24 Nov 2005 10:07:11 +0000 (+0000) Subject: Display configuration status for FAIpackages X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=97d6b4fdc5cae264c2a49a4c3886d01a1cdb3237;p=gosa.git Display configuration status for FAIpackages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2040 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index a0be45fcb..6eb8a52c5 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -386,10 +386,24 @@ class faiPackage extends plugin $a_ret=array(); if(is_array($this->usedPackages)) { foreach($this->usedPackages as $usedName){ + + $config = 0; + + foreach($this->ConfiguredPackages as $name => $value){ + if($name == $usedName){ + $config ++; + } + } + + $c_str =""; + if($config){ + $c_str = " - "._("package is configured"); + } + if(isset($this->list[$usedName][1])){ - $a_ret[$usedName] = $usedName." [".$this->list[$usedName][1]."]"; + $a_ret[$usedName] = $usedName." [".$this->list[$usedName][1]."]".$c_str; }else{ - $a_ret[$usedName] = $usedName; + $a_ret[$usedName] = $usedName.$c_str; } } }