From 97d6b4fdc5cae264c2a49a4c3886d01a1cdb3237 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 24 Nov 2005 10:07:11 +0000 Subject: [PATCH] Display configuration status for FAIpackages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2040 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPackage.inc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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; } } } -- 2.30.2