summaryrefslogtreecommitdiff
path: root/program/include/iniset.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-10-23 15:42:19 +0200
committerAleksander Machniak <alec@alec.pl>2014-10-23 15:42:19 +0200
commitcbac33113a2d706b752675c83e31d8afcfb9be32 (patch)
treef5c8604ef633c95ee35fb77e0c2be5516fc2477a /program/include/iniset.php
parent89984d01ba5c29bd5361759e40c39d2bb9878eb1 (diff)
Fix "PHP Fatal error: Cannot redeclare class PEAR" if both program/lib/PEAR.php and composer loaders exist (#1490112)
Diffstat (limited to 'program/include/iniset.php')
-rw-r--r--program/include/iniset.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/program/include/iniset.php b/program/include/iniset.php
index 981a53d18..a999ea57e 100644
--- a/program/include/iniset.php
+++ b/program/include/iniset.php
@@ -54,17 +54,17 @@ if (set_include_path($include_path) === false) {
// (does not work in safe mode)
@set_time_limit(120);
+// include composer autoloader (if available)
+if (@file_exists('vendor/autoload.php')) {
+ require 'vendor/autoload.php';
+}
+
// include Roundcube Framework
require_once 'Roundcube/bootstrap.php';
// register autoloader for rcmail app classes
spl_autoload_register('rcmail_autoload');
-// include composer autoloader (if available)
-if (@file_exists('vendor/autoload.php')) {
- require 'vendor/autoload.php';
-}
-
// backward compatybility (to be removed)
require_once INSTALL_PATH . 'program/include/bc.php';