From: garvinhicking Date: Wed, 5 Oct 2005 17:36:44 +0000 (+0000) Subject: move plugin hook to the right place X-Git-Tag: 0.9~88 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7c2c1745ca96af42f0f1c6133711b7b475ba8c84;p=s9y.git move plugin hook to the right place --- diff --git a/serendipity_admin.php b/serendipity_admin.php index 3db9e49..43b2ef8 100644 --- a/serendipity_admin.php +++ b/serendipity_admin.php @@ -6,7 +6,6 @@ define('IN_installer', true); define('IN_upgrader', true); define('IN_serendipity', true); include('serendipity_config.inc.php'); -serendipity_plugin_api::hook_event('backend_configure', $serendipity); header('Content-Type: text/html; charset=' . LANG_CHARSET); @@ -17,6 +16,9 @@ if (IS_installed === false) { $css_file = 'serendipity.css.php?serendipity[css_mode]=serendipity_admin.css'; } else { $css_file = serendipity_rewriteURL('serendipity_admin.css'); + if (defined('IS_up2date') && IS_up2date === true) { + serendipity_plugin_api::hook_event('backend_configure', $serendipity); + } } if (isset($serendipity['GET']['adminModule']) && $serendipity['GET']['adminModule'] == 'logout') {