From 318f05193eab9046b17fc89a1176567654fabf0b Mon Sep 17 00:00:00 2001 From: tjhunt Date: Sun, 5 Jul 2009 02:16:56 +0000 Subject: [PATCH] MDL-19714 Fatal errors when installing HEAD This is my attempt to fix things by copying code from setup.php to install.php. Seems to work now. --- install.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install.php b/install.php index 0260b6f130..0cc136f75e 100644 --- a/install.php +++ b/install.php @@ -129,6 +129,8 @@ $CFG->lang = $config->lang; $CFG->dirroot = str_replace('\\', '/', dirname(__FILE__)); // Fix for win32 $CFG->libdir = "$CFG->dirroot/lib"; $CFG->wwwroot = install_guess_wwwroot(); // can not be changed - ppl must use the real address when installing +$CFG->themedir = $CFG->dirroot.'/theme'; +$CFG->themewww = $CFG->wwwroot.'/theme'; $CFG->httpswwwroot = $CFG->wwwroot; $CFG->httpsthemewww = $CFG->wwwroot; $CFG->dataroot = $config->dataroot; @@ -141,6 +143,7 @@ $CFG->running_installer = true; require_once($CFG->libdir.'/setuplib.php'); require_once($CFG->libdir.'/textlib.class.php'); require_once($CFG->libdir.'/weblib.php'); +require_once($CFG->libdir.'/outputlib.php'); require_once($CFG->libdir.'/dmllib.php'); require_once($CFG->libdir.'/moodlelib.php'); require_once($CFG->libdir.'/deprecatedlib.php'); @@ -149,6 +152,12 @@ require_once($CFG->libdir.'/environmentlib.php'); require_once($CFG->libdir.'/xmlize.php'); require_once($CFG->libdir.'/componentlib.class.php'); + //point pear include path to moodles lib/pear so that includes and requires will search there for files before anywhere else + //the problem is that we need specific version of quickforms and hacked excel files :-( + ini_set('include_path', $CFG->libdir.'/pear' . PATH_SEPARATOR . ini_get('include_path')); + //point zend include path to moodles lib/zend so that includes and requires will search there for files before anywhere else + ini_set('include_path', $CFG->libdir.'/zend' . PATH_SEPARATOR . ini_get('include_path')); + require('version.php'); $CFG->target_release = $release; -- 2.39.5