Code

Display configuration status for FAIpackages
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Nov 2005 10:07:11 +0000 (10:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Nov 2005 10:07:11 +0000 (10:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2040 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPackage.inc

index a0be45fcb94ca72a14e3e44a48577ef82a2d910b..6eb8a52c5a26c06da0e4e8f31f45c74e9876bc24 100644 (file)
@@ -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;
         }
       }
     }