Note: You are currently viewing documentation for Moodle 2.4. Up-to-date documentation for the latest stable version of Moodle may be available here: Variables.


From MoodleDocs

This page is for administrators of Moodle 1.6 sites (see Talk:Variables).

NOTE: In later versions of Moodle, variables may be in different locations in the interface. For instance, the "maxbytes" variable is in the site administration block under Security -> Site Policies -> Maximum uploaded file size.


  • lang - If you wish to change any text on your site, it is recommended that a local language pack is created. Please refer to Language for details
  • timezone - This field is used to set the default timezone used by Moodle. It affects time-related messages on the system such as assignment deadlines. If you have set this and still have time problems, make sure the time is set correctly on the server. Users can also set their timezone, see Edit profile.
  • themelist, allowuserthemes, allowcoursethemes - Please refer to the Theme configuration for details

Operating System




  • debug - Set debug to on in order to get more information about PHP errors. This is often helpful to an administrator when trying to get more information about an error or problem being experienced. Normally, debug is set to off. For more information about debugging in Moodle 1.7 onwards, see Debugging.

See also