Code

Fixed app release detection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 13:27:33 +0000 (13:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 13:27:33 +0000 (13:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6657 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupApplication.inc

index c5c9572fe19ddb9b38ad7f9fced218d5e37c27f1..9b2efd405650615b61ff257c4740ccc5719a3c5c 100644 (file)
@@ -784,9 +784,9 @@ class appgroup extends plugin
     /* Show main page */
     if ($this->dialog){
       $smarty->assign("table", $this->table);
-      $display.= $smarty->fetch (get_template_path('application_options.tpl', TRUE));
+      $display.= $smarty->fetch (get_template_path('application_options.tpl', TRUE,dirname(__FILE__)));
     } else {
-      $display.= $smarty->fetch (get_template_path('application.tpl', TRUE));
+      $display.= $smarty->fetch (get_template_path('application.tpl', TRUE, dirname(__FILE__)));
     }
     return ($display);
   }
@@ -800,8 +800,9 @@ class appgroup extends plugin
     $ldap->search("(&(objectClass=organizationalUnit)(objectClass=FAIbranch))",array("ou","dn"));
     $ret =array();
     while($attrs = $ldap->fetch()){
-      if(preg_match("/ou=fai,/",$attrs['dn'])){
-        $bb = preg_replace("/ou=fai,.*/","",$attrs['dn']);
+  
+      if(preg_match("/ou=apps,/",$attrs['dn'])){
+        $bb = preg_replace("/ou=apps,.*/","",$attrs['dn']);
         $parts = array_reverse(split("ou=",$bb));
 
         $str ="";