mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'MDL-39484-master-int' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
373a40c5db
@ -149,6 +149,7 @@ $CFG->httpswwwroot = $CFG->wwwroot;
|
||||
$CFG->docroot = 'http://docs.moodle.org';
|
||||
$CFG->running_installer = true;
|
||||
$CFG->early_install_lang = true;
|
||||
$CFG->ostype = (stristr(PHP_OS, 'win') && !stristr(PHP_OS, 'darwin')) ? 'WINDOWS' : 'UNIX';
|
||||
|
||||
$parts = explode('/', str_replace('\\', '/', dirname(dirname(__FILE__))));
|
||||
$CFG->admin = array_pop($parts);
|
||||
|
@ -151,7 +151,7 @@ if (!empty($_POST)) {
|
||||
$config->dataroot = empty($distro->dataroot) ? null : $distro->dataroot; // initialised later after including libs or by distro
|
||||
}
|
||||
|
||||
// Fake some settings so that we can use selected functions from moodlelib.php and weblib.php
|
||||
// Fake some settings so that we can use selected functions from moodlelib.php, weblib.php and filelib.php.
|
||||
$CFG = new stdClass();
|
||||
$CFG->lang = $config->lang;
|
||||
$CFG->dirroot = dirname(__FILE__);
|
||||
@ -168,6 +168,7 @@ $CFG->langlocalroot = $CFG->dataroot.'/lang';
|
||||
$CFG->directorypermissions = isset($distro->directorypermissions) ? $distro->directorypermissions : 00777; // let distros set dir permissions
|
||||
$CFG->running_installer = true;
|
||||
$CFG->early_install_lang = true;
|
||||
$CFG->ostype = (stristr(PHP_OS, 'win') && !stristr(PHP_OS, 'darwin')) ? 'WINDOWS' : 'UNIX';
|
||||
|
||||
// Require all needed libs
|
||||
require_once($CFG->libdir.'/setuplib.php');
|
||||
|
Loading…
x
Reference in New Issue
Block a user