Make external event plugins work properly again. Genpage should not be used? Will discuss on the forums.

Also add inactive/active placements to backend
This commit is contained in:
Garvin Hicking 2014-03-05 14:23:19 +01:00
parent 0c787fcbfe
commit d208452096
2 changed files with 4 additions and 1 deletions

View File

@ -85,6 +85,9 @@ function show_plugins($event_only = false, $sidebars = null)
}
}
$opts['event'] = PLUGIN_ACTIVE;
$opts['eventh'] = PLUGIN_INACTIVE;
$data['event_only'] = $event_only;
if (!$event_only) {

View File

@ -368,7 +368,7 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range
exit;
} else if (preg_match(PAT_PLUGIN, $uri, $matches)) {
$serendipity['view'] = 'plugin';
include(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');
#include(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');
#echo $serendipity["handler"]["test.js"];
serendipity_plugin_api::hook_event('external_plugin', $matches[2]);