X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fclass_tabs.inc;h=6d1b5e871781daf574a885a21751473dd6e8ffe6;hb=f7ebf98692ee53fcfffdc91b87d81a24ac19df0e;hp=c40a7436268970c943e58295680139a94de32454;hpb=e0ef0c32c0fe4af932ebb17546a3356647be0b31;p=gosa.git diff --git a/gosa-core/include/class_tabs.inc b/gosa-core/include/class_tabs.inc index c40a74362..6d1b5e871 100644 --- a/gosa-core/include/class_tabs.inc +++ b/gosa-core/include/class_tabs.inc @@ -54,7 +54,7 @@ class tabs if(!count($data)) { $data[] = array("CLASS" => 'plugin',"NAME" => 'Error'); msg_dialog::display(_("Error"), - sprintf(_("No plugin definitions found to initialize '%s', please check your configuration file."),get_class($this)), + sprintf(_("No plugin definition for %s found: please check the configuration file!"), bold(get_class($this))), "ERROR_DIALOG"); } @@ -63,7 +63,7 @@ class tabs foreach ($data as &$tab){ if (!plugin_available($tab['CLASS'])){ - trigger_error(sprintf("Unknown class '%s'!", $tab['CLASS'])); + trigger_error(sprintf("Unknown class %s!", bold($tab['CLASS']))); continue; } if ($this->current == "") $this->current= $tab['CLASS']; @@ -142,13 +142,21 @@ class tabs $display= $this->by_object[$this->current]->multiple_execute(); } $tabs= $this->gen_tabs(); - $display = - "\n {$tabs}". - "\n ". - "\n
". - "\n {$display}". - "\n
"; + if($this->is_modal_dialog()){ + $display = + "\n
". + "\n {$display}". + "\n
"; + }else{ + + $display = + "\n {$tabs}". + "\n ". + "\n
". + "\n {$display}". + "\n
"; + } return ($display); } @@ -238,7 +246,7 @@ class tabs foreach (array_reverse($this->by_object) as $key => $obj){ $reason= $obj->allow_remove(); if ($reason != ""){ - msg_dialog::display(_("Warning"), sprintf(_("Delete process has been canceled by plugin '%s': %s"), $key, $reason), WARNING_DIALOG); + msg_dialog::display(_("Warning"), sprintf(_("Delete process has been canceled by plugin %s: %s"), bold($key), $reason), WARNING_DIALOG); return; } } @@ -379,6 +387,7 @@ class tabs $this->by_name['reference']= _("References"); $this->by_object['reference']= new reference($this->config, $this->dn); $this->by_object['reference']->parent= &$this; + $this->by_object['reference']->set_acl_category($this->acl_category); } }