Commit d2531cc4 authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review
Browse files

Display the skins checkbox for the default institution config page

Bug 1249123

Change-Id: I959a291d13a32132aa1cd791f1b8f094c8bfd5c4
parent 666df549
......@@ -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',
......
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