From: kink Date: Sat, 28 Jan 2006 19:12:19 +0000 (+0000) Subject: config.php was not loaded before plugin.php, but that's needed to make X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=78153530d3c8e63abbc5c193b89323de8b315117;p=squirrelmail.git config.php was not loaded before plugin.php, but that's needed to make plugins work. The real solution is a centralized init and no active code under functions/ git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10594 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/plugin.php b/functions/plugin.php index 5be3a953..ab8d5184 100644 --- a/functions/plugin.php +++ b/functions/plugin.php @@ -15,6 +15,7 @@ /** Everything needs global.. */ require_once(SM_PATH . 'functions/global.php'); +require_once(SM_PATH . 'config/config.php'); require_once(SM_PATH . 'functions/prefs.php'); global $squirrelmail_plugin_hooks; @@ -234,4 +235,4 @@ if (isset($plugins) && is_array($plugins)) { } } -?> \ No newline at end of file +?>