Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
1db6b4d5
Commit
1db6b4d5
authored
Jul 13, 2010
by
Richard Mansfield
Browse files
Enable username search in new installs & move site option to user settings
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
4c83bad5
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/site/options.php
View file @
1db6b4d5
...
...
@@ -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
(
...
...
htdocs/lib/upgrade.php
View file @
1db6b4d5
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment