Commit 4b0efae1 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add site name to site options screen

parent 7b75ec8d
......@@ -42,6 +42,12 @@ $siteoptionform = form(array(
'action' => '',
'ajaxpost' => true,
'elements' => array(
'sitename' => array(
'type' => 'text',
'title' => get_string('sitename'),
'description' => get_string('sitenamedescription'),
'defaultvalue' => get_config('sitename'),
),
'language' => array(
'type' => 'select',
'title' => get_string('language'),
......@@ -109,7 +115,7 @@ function siteoptions_fail($field) {
}
function siteoptions_submit($values) {
$fields = array('language','theme','pathtoclam',
$fields = array('sitename','language','theme','pathtoclam',
'allowpublicviews','artefactviewinactivitytime',
'contactaddress');
foreach ($fields as $field) {
......
......@@ -111,18 +111,20 @@ $string['artefactviewinactivitytimedescription'] = 'The time after which an inac
$string['contactaddress'] = 'Contact address';
$string['contactaddressdescription'] = 'The email address to which messages from the Contact Us form will be sent';
$string['language'] = 'Language';
$string['sitelanguagedescription'] = 'The default language for the site';
$string['pathtoclam'] = 'Path to clam';
$string['pathtoclamdescription'] = 'The filesystem path to clamscan or clamdscan';
$string['sessionlifetime'] = 'Session lifetime';
$string['sessionlifetimedescription'] = 'Time in minutes after which an inactive logged in user will be automatically logged out';
$string['theme'] = 'Theme';
$string['setsiteoptionsfailed'] = 'Failed setting the %s option';
$string['sitelanguagedescription'] = 'The default language for the site';
$string['sitename'] = 'Site name';
$string['sitenamedescription'] = 'The overall name of the site';
$string['siteoptionsset'] = 'Site options have been updated';
$string['sitethemedescription'] = 'The theme for the site';
$string['theme'] = 'Theme';
$string['updatesiteoptions'] = 'Update site options';
$string['viruschecking'] = 'Virus checking';
$string['viruscheckingdescription'] = 'If checked, virus checking will be enabled for all uploaded files using ClamAV';
$string['updatesiteoptions'] = 'Update site options';
$string['siteoptionsset'] = 'Site options have been updated';
$string['setsiteoptionsfailed'] = 'Failed setting the %s option';
// Expiry times
$string['noenddate'] = 'No end date';
$string['days'] = 'days';
......
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