From f8b78c7212091c5e5da0033f49f7dc5d3ce0db10 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 1 Jul 2022 09:50:37 +0200 Subject: [PATCH] include vendor/autoload.php after setting include path --- inc/inc.Settings.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inc/inc.Settings.php b/inc/inc.Settings.php index 3014536ce..a21c8b57a 100644 --- a/inc/inc.Settings.php +++ b/inc/inc.Settings.php @@ -64,9 +64,6 @@ ini_set('include_path', $settings->_rootDir.'pear'. PATH_SEPARATOR .ini_get('inc if(!empty($settings->_extraPath)) { ini_set('include_path', $settings->_extraPath. PATH_SEPARATOR .ini_get('include_path')); } -/* composer is installed in pear directory, but install tool does not need it */ -if(!defined("SEEDDMS_INSTALL")) - require_once $settings->_rootDir.'../pear/vendor/autoload.php'; if(isset($settings->_maxExecutionTime)) { if (php_sapi_name() !== "cli") { @@ -98,3 +95,7 @@ ini_set('include_path', $settings->_rootDir. PATH_SEPARATOR .ini_get('include_pa * relative to it. */ ini_set('include_path', $settings->_rootDir.'../pear'. PATH_SEPARATOR .ini_get('include_path')); + +/* composer is installed in pear directory, but install tool does not need it */ +if(!defined("SEEDDMS_INSTALL")) + require_once 'vendor/autoload.php';