MDL-25290 conversion: Converted config to use MUC

This commit is contained in:
Sam Hemelryk 2012-08-14 11:40:28 +12:00
parent 9da506c2a3
commit 007bfe8b4d
6 changed files with 76 additions and 57 deletions

View file

@ -713,8 +713,8 @@ function initialise_cfg() {
try {
if ($DB) {
$localcfg = $DB->get_records_menu('config', array(), '', 'name,value');
foreach ($localcfg as $name=>$value) {
$localcfg = get_config('core');
foreach ($localcfg as $name => $value) {
if (property_exists($CFG, $name)) {
// config.php settings always take precedence
continue;