index d6ed872a5eafa3168976b0b3885d1c0602e516dc..e05e60c516aaedae9b247bbf93a63603d4fbea7a 100644 (file)
$baseobject= NULL;
foreach ($data as &$tab){
+
+ if (!plugin_available($tab['CLASS'])){
+ continue;
+ }
+
$this->by_name[$tab['CLASS']]= $tab['NAME'];
if ($baseobject === NULL){
$notify= "";
}
- if ($_SESSION['js']==FALSE){
+ if (session::get('js')==FALSE){
$display.= "<div ".$notify." class=\"$style[$index]\"><input type=\"submit\" name=\"$class\"".
" class=\"$style[$index]\" value=\"$title\"";
} else {
foreach (array_reverse($this->by_object) as $key => $obj){
$reason= $obj->allow_remove();
if ($reason != ""){
- print_red(sprintf(_("Delete process has been canceled by plugin '%s': %s"), $key, $reason));
+ msg_dialog::display(_("Warning"), sprintf(_("Delete process has been canceled by plugin '%s': %s"), $key, $reason), WARNING_DIALOG);
return;
}
}
$this->multiple_support_active = TRUE;
foreach($this->by_object as $name => $obj){
if($obj->multiple_support){
- $this->by_object[$name]->multiple_support_active = TRUE;
+ $this->by_object[$name]->enable_multiple_support();
}else{
unset($this->by_object[$name]);
unset($this->by_name[$name]);