summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b0c8805)
raw | patch | inline | side by side (parent: b0c8805)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Mar 2008 07:11:25 +0000 (07:11 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Mar 2008 07:11:25 +0000 (07:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9629 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc
index 903f6ce050465e10eb75a65906dfbab102b9ef73..a4396270b35a5e43fbbc1196271d1a8ec661e938 100644 (file)
/* Do we represent a valid account? */
if (!$this->is_account){
$display= $this->show_enable_header(_("Add application extension"),
- _("Application extension disabled. You can enable it by clicking below."));
+ msgPool::featuresDisabled(_("application")));
return ($display);
}
$display = $this->show_enable_header(_("Remove application extension"),
- _("Application extension enabled. You can disable it by clicking below."));
-
+ msgPool::featuresEnabled(_("application")));
if(isset($_GET['send'])){
$id = $_GET['send'];
/* !\brief Remove the given id from the menu structure.
- @param String ID to of the entry we want to remove.
- @return Boolean TRUE on success
+ @param String ID to of the entry we want to remove.
+ @return Boolean TRUE on success
*/
function _add_entry($folder_id,$entry,$pos = 0)
{
$entry['PARENT'] = $folder_id;
$entry['ENTRIES']= array();
$entry['STATUS'] = "ADDED";
-
+
$cnt = 0;
$new = array();
$added =FALSE;
- foreach($folder['ENTRIES'] as $key => $obj){
- if($obj['STATUS'] == "LOADED"){
- $obj['STATUS'] = "EDITED";
- }
- if($pos == $cnt){
- $new[] = $entry;
- $added = TRUE;
- }
- $cnt ++;
- $new[] = $obj;
+ if($obj['STATUS'] == "LOADED"){
+ $obj['STATUS'] = "EDITED";
}
- if(!$added){
+ if($pos == $cnt){
$new[] = $entry;
+ $added = TRUE;
}
-
- $all[$folder_id]['ENTRIES'] = $new;
- foreach($entries as $sub){
- $this->_add_entry($entry['UNIQID'],$sub,-1);
- }
- return(TRUE);
+ $cnt ++;
+ $new[] = $obj;
}
- return(FALSE);
+ if(!$added){
+ $new[] = $entry;
+ }
+
+ $all[$folder_id]['ENTRIES'] = $new;
+ foreach($entries as $sub){
+ $this->_add_entry($entry['UNIQID'],$sub,-1);
+ }
+ return(TRUE);
}