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:
@@ -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;
|
$data['event_only'] = $event_only;
|
||||||
if (!$event_only) {
|
if (!$event_only) {
|
||||||
|
|||||||
@@ -368,7 +368,7 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range
|
|||||||
exit;
|
exit;
|
||||||
} else if (preg_match(PAT_PLUGIN, $uri, $matches)) {
|
} else if (preg_match(PAT_PLUGIN, $uri, $matches)) {
|
||||||
$serendipity['view'] = 'plugin';
|
$serendipity['view'] = 'plugin';
|
||||||
include(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');
|
#include(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');
|
||||||
|
|
||||||
#echo $serendipity["handler"]["test.js"];
|
#echo $serendipity["handler"]["test.js"];
|
||||||
serendipity_plugin_api::hook_event('external_plugin', $matches[2]);
|
serendipity_plugin_api::hook_event('external_plugin', $matches[2]);
|
||||||
|
|||||||
Reference in New Issue
Block a user