From 36bd93f1384ccf3f3ccd6fa884ad594d1b486367 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 07 Aug 2015 11:27:08 -0400 Subject: [PATCH] PHP7: Fixed some E_WARNING errors that previously were E_STRICT --- program/include/rcmail.php | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 6a40bec..10a9d64 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -65,11 +65,12 @@ /** * This implements the 'singleton' design pattern * - * @param string Environment name to run (e.g. live, dev, test) + * @param integer $mode Ignored rcube::get_instance() argument + * @param string $env Environment name to run (e.g. live, dev, test) * * @return rcmail The one and only instance */ - static function get_instance($env = '') + static function get_instance($mode = 0, $env = '') { if (!self::$instance || !is_a(self::$instance, 'rcmail')) { self::$instance = new rcmail($env); @@ -94,8 +95,9 @@ } // load all configured plugins - $this->plugins->load_plugins((array)$this->config->get('plugins', array()), - array('filesystem_attachments', 'jqueryui')); + $plugins = (array) $this->config->get('plugins', array()); + $required_plugins = array('filesystem_attachments', 'jqueryui'); + $this->plugins->load_plugins($plugins, $required_plugins); // start session $this->session_init(); -- Gitblit v1.9.1