From 6225fd13c09fec594eb80da399cd32f49dac2bd8 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 23 Dec 2007 11:50:23 +0000 Subject: [PATCH] MDL-12711 use 'checked' value for enabled resource_popup; merged from MOODLE_19_STABLE --- mod/resource/settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/resource/settings.php b/mod/resource/settings.php index ff2e2ffcd6..242f49389f 100644 --- a/mod/resource/settings.php +++ b/mod/resource/settings.php @@ -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"; -- 2.39.5