Add support for globally defined forced $CFG
authorDavid Mudrák <david@moodle.com>
Fri, 27 Jun 2014 10:48:09 +0000 (12:48 +0200)
committerDavid Mudrák <david@moodle.com>
Wed, 23 Jul 2014 09:40:27 +0000 (11:40 +0200)
commit52bada3c241941a3763d8d8664463f1a60157814
tree7dc9839c6a0e4e5cbee87c63963be5f89dcbb2e8
parent0e1c2908db3bd0f9e80dbd52d8f08ba776134fc9
Add support for globally defined forced $CFG

There are some additional $CFG variables that the mdk user may want to always
set in all config.php created. In my case, it is $CFG->divertallemailsto to
prevent accidental mails sent out from my local installations.

The patch adds support for the new mdk-config items grouped under `forceCfg`.
If the setting forceCfg.foobar is found, it's value will be put into
$CFG->foobar right after the installation process.
mdk/moodle.py