From: hickert Date: Thu, 21 Jun 2007 13:27:33 +0000 (+0000) Subject: Fixed app release detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e0cd615e468864f0b45566dc37d9f1a1bc1ff162;p=gosa.git Fixed app release detection git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6657 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index c5c9572fe..9b2efd405 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -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 ="";