From de89d46be24f6b3454a0c0e62973af947b22ff29 Mon Sep 17 00:00:00 2001 From: corbosman <cor@xs4all.net> Date: Wed, 04 Feb 2015 07:17:51 -0500 Subject: [PATCH] Load plugins before sessions have started --- program/include/rcmail.php | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/program/include/rcmail.php b/program/include/rcmail.php index a16319f..306e593 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -93,6 +93,10 @@ $this->filename = $basename; } + // load all configured plugins + $this->plugins->load_plugins((array)$this->config->get('plugins', array()), + array('filesystem_attachments', 'jqueryui')); + // start session $this->session_init(); @@ -124,10 +128,8 @@ $GLOBALS['OUTPUT'] = $this->load_gui(!empty($_REQUEST['_framed'])); } - // load plugins + // run init method on all the plugins $this->plugins->init($this, $this->task); - $this->plugins->load_plugins((array)$this->config->get('plugins', array()), - array('filesystem_attachments', 'jqueryui')); } /** -- Gitblit v1.9.1