index c40a7436268970c943e58295680139a94de32454..6d1b5e871781daf574a885a21751473dd6e8ffe6 100644 (file)
if(!count($data)) {
$data[] = array("CLASS" => 'plugin',"NAME" => 'Error');
msg_dialog::display(_("Error"),
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");
}
"ERROR_DIALOG");
}
foreach ($data as &$tab){
if (!plugin_available($tab['CLASS'])){
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'];
continue;
}
if ($this->current == "") $this->current= $tab['CLASS'];
$display= $this->by_object[$this->current]->multiple_execute();
}
$tabs= $this->gen_tabs();
$display= $this->by_object[$this->current]->multiple_execute();
}
$tabs= $this->gen_tabs();
- $display =
- "\n {$tabs}".
- "\n <input type='hidden' name='arg' value=''>".
- "\n <div class='tab-content'>".
- "\n {$display}".
- "\n </div>";
+ if($this->is_modal_dialog()){
+ $display =
+ "\n <div class='plugin'>".
+ "\n {$display}".
+ "\n </div>";
+ }else{
+
+ $display =
+ "\n {$tabs}".
+ "\n <input type='hidden' name='arg' value=''>".
+ "\n <div class='tab-content'>".
+ "\n {$display}".
+ "\n </div>";
+ }
return ($display);
}
return ($display);
}
foreach (array_reverse($this->by_object) as $key => $obj){
$reason= $obj->allow_remove();
if ($reason != ""){
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;
}
}
return;
}
}
$this->by_name['reference']= _("References");
$this->by_object['reference']= new reference($this->config, $this->dn);
$this->by_object['reference']->parent= &$this;
$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);
}
}
}
}