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 e6e2048..9745b8b 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);
 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 6c3e957..5d71510 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;
 
 switch ($sInitLocation) {
     case 'style': session_write_close(); sqsetcookieflush(); break;