MDL-14679 fixed regression

This commit is contained in:
skodak 2008-06-01 14:53:20 +00:00
parent ad4375ac7f
commit 29c1951305

View File

@ -358,8 +358,8 @@ function calendar_get_popup($is_today, $event_timestart, $popupcontent='') {
} else {
$popupcaption .= get_string('eventsfor', 'calendar', userdate($event_timestart, get_string('strftimedayshort')));
}
$popupcontent = addslashes_js($popupcontent);
$popupcaption = addslashes_js($popupcaption);
$popupcontent = addslashes_js(s($popupcontent));
$popupcaption = addslashes_js(s($popupcaption));
$popup = 'onmouseover="return overlib(\''.$popupcontent.'\', CAPTION, \''.$popupcaption.'\');" onmouseout="return nd();"';
return $popup;
}