hook must be moved because include/constants.php is
[squirrelmail.git] / include / init.php
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;