how to modify default value

how to modify default value

judy judy發表於
Number of replies: 1
help~~~~~~>w<


i wan to modify default value
but not result

mod\resource\lib.php
-------------------------------------------------------------------------------------------------
$RESOURCE_WINDOW_OPTIONS = array('resizable', 'scrollbars', 'directories', 'location',
'menubar', 'toolbar', 'status', 'width', 'height');

foreach ($RESOURCE_WINDOW_OPTIONS as $popupoption) {
$popupoption = "resource_popup$popupoption";
if (!isset($CFG->$popupoption)) {
if ($popupoption == 'resource_popupheight') {
set_config($popupoption, 450); -->modify default value =480
} else if ($popupoption == 'resource_popupwidth') {
set_config($popupoption, 620);
} else {
set_config($popupoption, 'checked');
}
}
}

---------------------------------------------------------------------------------------------





me moodle (1.8.6)
附件 2009-3-6-a.PNG
評比平均分數: -
In reply to judy judy

Re: how to modify default value

Paula Clough發表於

My understanding is that you change the number from 450 to 480 and save the file. 

if ($popupoption == 'resource_popupheight') {
set_config($popupoption, 480);
} else if ($popupoption == 'resource_popupwidth') {
set_config($popupoption, 620);
} else {

Paula Clough 酷