[Server-devel] Moodle langpack and configuration trick

Martin Langhoff martin.langhoff at gmail.com
Fri Apr 16 09:17:37 EDT 2010


On Fri, Apr 16, 2010 at 10:08 AM, Tim Moody <timmoody at sympatico.ca> wrote:
>> Working iwth the La Rioja team, I rolled a new moodle-xs RPM that can
>> pick $CFG overrides from files dropped in /etc/moodle/conf.d/ .
>
> Based on the example, I assume you mean .php files with valid php code and
> that do appropriate assignments to $CFG.  Is it possible to break moodle?

Yes. All moodle configuration is done in PHP code. If invalid, you
break moodle.

> Does this run at each startup or only once?  How does it interact with
> changes done through the admin interface?

These are read on every HTTP request, and override changes done via
admin interface. IOWs you can use it to lockdown values.


m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff


More information about the Server-devel mailing list