Skip to content
GitLab
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
d2531cc4
Commit
d2531cc4
authored
Nov 12, 2013
by
Aaron Wells
Committed by
Gerrit Code Review
Nov 18, 2013
Browse files
Display the skins checkbox for the default institution config page
Bug 1249123 Change-Id: I959a291d13a32132aa1cd791f1b8f094c8bfd5c4
parent
666df549
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/users/institutions.php
View file @
d2531cc4
...
...
@@ -335,6 +335,7 @@ if ($institution || $add) {
);
}
// Some fields to hide from the default institution config screen
if
(
empty
(
$data
->
name
)
||
$data
->
name
!=
'mahara'
)
{
$elements
[
'defaultmembershipperiod'
]
=
array
(
'type'
=>
'expiry'
,
...
...
@@ -399,14 +400,18 @@ if ($institution || $add) {
'defaultvalue'
=>
$data
->
dropdownmenu
,
'help'
=>
true
,
);
if
(
get_config
(
'skins'
))
{
$elements
[
'skins'
]
=
array
(
'type'
=>
'checkbox'
,
'title'
=>
get_string
(
'skins'
,
'admin'
),
'description'
=>
get_string
(
'skinsinstitutiondescription'
,
'admin'
),
'defaultvalue'
=>
$data
->
skins
,
);
}
}
// The skins checkbox should be shown for the default institution
if
(
get_config
(
'skins'
))
{
$elements
[
'skins'
]
=
array
(
'type'
=>
'checkbox'
,
'title'
=>
get_string
(
'skins'
,
'admin'
),
'description'
=>
get_string
(
'skinsinstitutiondescription'
,
'admin'
),
'defaultvalue'
=>
$data
->
skins
,
);
}
// Some more fields that are hidden from the default institution
if
(
empty
(
$data
->
name
)
||
$data
->
name
!=
'mahara'
)
{
$elements
[
'showonlineusers'
]
=
array
(
'type'
=>
'select'
,
'disabled'
=>
get_config
(
'showonlineuserssideblock'
)
?
''
:
'disabled'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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