Ah, the internal /admin hooks need this. Hardcoded check. Not optimal, but should work better than the old approach.

This commit is contained in:
Garvin Hicking 2014-03-05 15:29:31 +01:00
parent d208452096
commit 8d0b1b79be

View File

@ -368,7 +368,10 @@ 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');
if (strpos($matches[2], 'admin/') !== false) {
include(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');
}
#echo $serendipity["handler"]["test.js"];
serendipity_plugin_api::hook_event('external_plugin', $matches[2]);