Commit 033ca0a3 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Changed the name of the language config option to 'lang', so it can be set properly.

parent bc4c84b9
......@@ -55,11 +55,11 @@ $siteoptionform = pieform(array(
'defaultvalue' => get_config('sitename'),
'help' => true,
),
'language' => array(
'lang' => array(
'type' => 'select',
'title' => get_string('language','admin'),
'description' => get_string('sitelanguagedescription','admin'),
'defaultvalue' => get_config('language'),
'defaultvalue' => get_config('lang'),
'collapseifoneoption' => true,
'options' => $langoptions,
'help' => true,
......@@ -138,7 +138,7 @@ function siteoptions_fail(Pieform $form, $field) {
}
function siteoptions_submit(Pieform $form, $values) {
$fields = array('sitename','language','theme','pathtofile', 'pathtoclam',
$fields = array('sitename','lang','theme','pathtofile', 'pathtoclam',
'allowpublicviews','artefactviewinactivitytime', 'searchplugin');
foreach ($fields as $field) {
if (!set_config($field, $values[$field])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment