mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-12711 use 'checked' value for enabled resource_popup; merged from MOODLE_19_STABLE
This commit is contained in:
parent
a7ad48fd43
commit
6225fd13c0
@ -21,9 +21,9 @@ $settings->add(new admin_setting_configpasswordunmask('resource_secretphrase', g
|
||||
$settings->add(new admin_setting_configcheckbox('resource_allowlocalfiles', get_string('allowlocalfiles', 'resource'),
|
||||
get_string('configallowlocalfiles', 'resource'), 0));
|
||||
|
||||
$woptions = array(0 => get_string('pagewindow', 'resource'), 1 => get_string('newwindow', 'resource'));
|
||||
$woptions = array('' => get_string('pagewindow', 'resource'), 'checked' => get_string('newwindow', 'resource'));
|
||||
$settings->add(new admin_setting_configselect('resource_popup', get_string('display', 'resource'),
|
||||
get_string('configpopup', 'resource'), 0, $woptions));
|
||||
get_string('configpopup', 'resource'), '', $woptions));
|
||||
|
||||
foreach ($RESOURCE_WINDOW_OPTIONS as $optionname) {
|
||||
$popupoption = "resource_popup$optionname";
|
||||
|
Loading…
x
Reference in New Issue
Block a user