1
0

Fix plugincontrols in no-js mode

This commit is contained in:
onli
2014-01-20 21:28:20 +01:00
parent c731c371d3
commit b55689ebf4
3 changed files with 8 additions and 18 deletions

View File

@ -54,11 +54,6 @@ function serendipity_pluginListSort($x, $y) {
*/
function show_plugins($event_only = false, $sidebars = null)
{
static $opts = array(
'event' => PLUGIN_ACTIVE,
'eventh' => PLUGIN_INACTIVE
);
global $serendipity;
$sql_filter = '';
@ -93,7 +88,6 @@ function show_plugins($event_only = false, $sidebars = null)
$data['event_only'] = $event_only;
if (!$event_only) {
$data['event_only'] = false;
$data['is_first'] = true;
}
@ -174,15 +168,15 @@ function show_plugins($event_only = false, $sidebars = null)
);
}
static $event_opts = array(
'event' => PLUGIN_ACTIVE,
$event_opts = array(
'event' => PLUGIN_ACTIVE,
'eventh' => PLUGIN_INACTIVE,
);
);
if ($is_event) {
$gopts =& $event_opts;
if ($event_only) {
$gopts = $event_opts;
} else {
$gopts =& $opts;
$gopts = $opts;
}
$data['placement'][$plugin_placement]['plugin_data'][$i]['sort_idx'] = $sort_idx;