fix modulebuilder boxes showboxes
This commit is contained in:
parent
9a13ebfdb8
commit
ccf71cd980
@ -1076,7 +1076,7 @@ class FormOther
|
||||
{
|
||||
if (empty($user->conf->$confuserzone) || $box->fk_user == $user->id) $boxidactivatedforuser[$box->id] = $box->id; // We keep only boxes to show for user
|
||||
}
|
||||
|
||||
//var_dump($boxidactivatedforuser);
|
||||
// Define selectboxlist
|
||||
$arrayboxtoactivatelabel = array();
|
||||
if (!empty($user->conf->$confuserzone))
|
||||
@ -1209,6 +1209,7 @@ class FormOther
|
||||
if (!empty($conf->global->MAIN_BOXES_MAXLINES)) $box_max_lines = $conf->global->MAIN_BOXES_MAXLINES;
|
||||
|
||||
$ii = 0;
|
||||
|
||||
foreach ($boxactivated as $key => $box)
|
||||
{
|
||||
if ((!empty($user->conf->$confuserzone) && $box->fk_user == 0) || (empty($user->conf->$confuserzone) && $box->fk_user != 0)) continue;
|
||||
@ -1220,6 +1221,7 @@ class FormOther
|
||||
//print 'box_order '.$boxactivated[$ii]->box_order.'<br>';
|
||||
// Show box
|
||||
$box->loadBox($box_max_lines);
|
||||
//var_dump($key,$box);
|
||||
$boxlista .= $box->showBox(null, null, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@ -206,6 +206,6 @@ class mymodulewidget1 extends ModeleBoxes
|
||||
{
|
||||
// You may make your own code here…
|
||||
// … or use the parent's class function using the provided head and contents templates
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user