mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
allow to use autoloader in setup.inc.php files
This commit is contained in:
parent
efa5a598d6
commit
d948e10598
@ -568,6 +568,12 @@ function check_install_pear_packages()
|
|||||||
global $config;
|
global $config;
|
||||||
$packages_installed = pear_list();
|
$packages_installed = pear_list();
|
||||||
|
|
||||||
|
// some setup files use autoloader
|
||||||
|
define('EGW_SERVER_ROOT', dirname(dirname(__DIR__)));
|
||||||
|
define('EGW_INCLUDE_ROOT', EGW_SERVER_ROOT);
|
||||||
|
define('EGW_API_INC', EGW_SERVER_ROOT.'/phpgwapi/inc');
|
||||||
|
include_once(EGW_API_INC.'/common_functions.inc.php');
|
||||||
|
|
||||||
// read required packages from apps
|
// read required packages from apps
|
||||||
$packages = array('PEAR' => true, 'HTTP_WebDAV_Server' => '999.egw-pear'); // pear must be the first, to run it's update first!
|
$packages = array('PEAR' => true, 'HTTP_WebDAV_Server' => '999.egw-pear'); // pear must be the first, to run it's update first!
|
||||||
$channels = array();
|
$channels = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user