hook must be moved because include/constants.php is
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 31 Aug 2006 06:16:27 +0000 (06:16 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 31 Aug 2006 06:16:27 +0000 (06:16 +0000)
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
include/init.php

index e6e20486be22a08c1437ceaacb53333f589b0dd8..9745b8b0c16079cc51cade74e4168199435950ab 100644 (file)
@@ -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');
index 6c3e957ecb294089cda81894c6f0774eaadeab28..5d715105ae8b82a48d4d14f48e1208ad8d75056f 100644 (file)
@@ -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;