X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fclass_tabs.inc;h=6d1b5e871781daf574a885a21751473dd6e8ffe6;hb=f7ebf98692ee53fcfffdc91b87d81a24ac19df0e;hp=36cad26d20b0a41c11096795ffed9b1fe30e7af3;hpb=07860d966847882cc1779e24c5384659dbe74941;p=gosa.git
diff --git a/gosa-core/include/class_tabs.inc b/gosa-core/include/class_tabs.inc
index 36cad26d2..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,8 +63,10 @@ class tabs
foreach ($data as &$tab){
if (!plugin_available($tab['CLASS'])){
+ trigger_error(sprintf("Unknown class %s!", bold($tab['CLASS'])));
continue;
}
+ if ($this->current == "") $this->current= $tab['CLASS'];
$this->by_name[$tab['CLASS']]= $tab['NAME'];
@@ -79,11 +81,6 @@ class tabs
$this->read_only |= $this->by_object[$tab['CLASS']]->read_only;
$this->by_object[$tab['CLASS']]->parent= &$this;
$this->by_object[$tab['CLASS']]->set_acl_category($this->acl_category);
-
- /* Initialize current */
- if ($this->current == ""){
- $this->current= $tab['CLASS'];
- }
}
}
@@ -112,15 +109,13 @@ class tabs
function execute()
{
-
-
- echo "Do not render TABS while a sub-dialog is opened!
";
-
// Ensure that the currently selected tab is valid.
if(!isset($this->by_name[$this->current])) {
$this->current = key($this->by_name);
}
+ pathNavigator::registerPlugin($this);
+
// Rotate current to last
$this->last= $this->current;
@@ -148,11 +143,20 @@ class tabs
}
$tabs= $this->gen_tabs();
- $display = "{$tabs}
-
-
"; + $ret .= "