From d948e105984246a309b8a4413168bcef391b2733 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 17 Jun 2014 09:34:15 +0000 Subject: [PATCH] allow to use autoloader in setup.inc.php files --- doc/rpm-build/post_install.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/rpm-build/post_install.php b/doc/rpm-build/post_install.php index 44f3510ba5..7497c40c35 100755 --- a/doc/rpm-build/post_install.php +++ b/doc/rpm-build/post_install.php @@ -568,6 +568,12 @@ function check_install_pear_packages() global $config; $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 $packages = array('PEAR' => true, 'HTTP_WebDAV_Server' => '999.egw-pear'); // pear must be the first, to run it's update first! $channels = array();