From 2c6792a029b444f0115777bfb15aefe3f486eb00 Mon Sep 17 00:00:00 2001 From: tokul Date: Thu, 31 Aug 2006 06:16:27 +0000 Subject: [PATCH] hook must be moved because include/constants.php is loaded before plugins are initialized. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11661 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- include/constants.php | 6 ------ include/init.php | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/include/constants.php b/include/constants.php index e6e20486..9745b8b0 100644 --- a/include/constants.php +++ b/include/constants.php @@ -150,9 +150,3 @@ define('SQM_COL_INT_DATE', 8); define('SQM_COL_TO', 9); define('SQM_COL_CC', 10); define('SQM_COL_BCC', 11); - -/** - * FIXME: error notice on direct load - * @since 1.2.0 - */ -do_hook('loading_constants'); diff --git a/include/init.php b/include/init.php index 6c3e957e..5d715105 100644 --- a/include/init.php +++ b/include/init.php @@ -284,6 +284,13 @@ if (isset($plugins) && is_array($plugins)) { } } +/** + * Before 1.5.2 version hook was part of functions/constants.php. + * After init layout changes, hook had to be moved because include/constants.php is + * loaded before plugins are initialized. + * @since 1.2.0 + */ +do_hook('loading_constants'); switch ($sInitLocation) { case 'style': session_write_close(); sqsetcookieflush(); break; -- 2.25.1