FMCorz / mdk

Moodle Development Kit. A collection of tools meant to make developers' lives easier.
GNU General Public License v3.0
85 stars 47 forks source link

forceCfg is applied only after the installation #150

Open mudrd8mz opened 7 years ago

mudrd8mz commented 7 years ago

The forceCfg allows to force some CFG values by hard-setting them in the config.php. I have it set to something like

    "forceCfg": {
        "prefix": "m_",
        "debug": 32767,
        "debugdisplay": 1,
        "divertallemailsto": "my@dev.account.tld",
        "themedesignermode": 0
    },

But I realized that mdk install still uses the default prefix. The reason is that forceCfg is applied after the DB installation. It would help if it was injected into config.php before it - so that things like $CFG->prefix and others are taken into account.