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

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( ...@@ -145,6 +145,13 @@ $siteoptionform = array(
'defaultvalue' => get_config('userscanhiderealnames'), 'defaultvalue' => get_config('userscanhiderealnames'),
'disabled' => in_array('userscanhiderealnames', $OVERRIDDEN), '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( 'anonymouscomments' => array(
'type' => 'checkbox', 'type' => 'checkbox',
'title' => get_string('anonymouscomments', 'admin'), 'title' => get_string('anonymouscomments', 'admin'),
...@@ -206,13 +213,6 @@ $siteoptionform = array( ...@@ -206,13 +213,6 @@ $siteoptionform = array(
'description' => get_string('allowgroupcategoriesdescription', 'admin'), 'description' => get_string('allowgroupcategoriesdescription', 'admin'),
'defaultvalue' => get_config('allowgroupcategories'), '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( 'institutionsettings' => array(
......
...@@ -702,6 +702,7 @@ function core_install_firstcoredata_defaults() { ...@@ -702,6 +702,7 @@ function core_install_firstcoredata_defaults() {
set_config('homepageinfo', 1); set_config('homepageinfo', 1);
set_config('showonlineuserssideblock', 1); set_config('showonlineuserssideblock', 1);
set_config('footerlinks', serialize(array('privacystatement', 'about', 'contactus'))); set_config('footerlinks', serialize(array('privacystatement', 'about', 'contactus')));
set_config('searchusernames', 1);
// install the applications // install the applications
$app = new StdClass; $app = new StdClass;
......
Supports Markdown
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