Commit 1db6b4d5 authored by Richard Mansfield's avatar Richard Mansfield

Enable username search in new installs & move site option to user settings

Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 4c83bad5
......@@ -145,6 +145,13 @@ $siteoptionform = array(
'defaultvalue' => get_config('userscanhiderealnames'),
'disabled' => in_array('userscanhiderealnames', $OVERRIDDEN),
),
'searchusernames' => array(
'type' => 'checkbox',
'title' => get_string('searchusernames', 'admin'),
'description' => get_string('searchusernamesdescription', 'admin'),
'defaultvalue' => get_config('searchusernames'),
'disabled' => in_array('searchusernames', $OVERRIDDEN),
),
'anonymouscomments' => array(
'type' => 'checkbox',
'title' => get_string('anonymouscomments', 'admin'),
......@@ -206,13 +213,6 @@ $siteoptionform = array(
'description' => get_string('allowgroupcategoriesdescription', 'admin'),
'defaultvalue' => get_config('allowgroupcategories'),
),
'searchusernames' => array(
'type' => 'checkbox',
'title' => get_string('searchusernames', 'admin'),
'description' => get_string('searchusernamesdescription', 'admin'),
'defaultvalue' => get_config('searchusernames'),
'disabled' => in_array('searchusernames', $OVERRIDDEN),
),
),
),
'institutionsettings' => array(
......
......@@ -702,6 +702,7 @@ function core_install_firstcoredata_defaults() {
set_config('homepageinfo', 1);
set_config('showonlineuserssideblock', 1);
set_config('footerlinks', serialize(array('privacystatement', 'about', 'contactus')));
set_config('searchusernames', 1);
// install the applications
$app = new StdClass;
......
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