]> git.mjollnir.org Git - moodle.git/commitdiff
Minor changes, Martin's fix for bugs 1502, 1184 (duplicated) confirmed.
authordefacer <defacer>
Tue, 1 Jun 2004 10:40:20 +0000 (10:40 +0000)
committerdefacer <defacer>
Tue, 1 Jun 2004 10:40:20 +0000 (10:40 +0000)
calendar/lib.php

index 4958c390f604a8baaa774d1771d114ca777f004e..9c7343eda31430f970813453446659d4abe1ba1e 100644 (file)
@@ -202,11 +202,11 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
                     $popupicon = $CFG->pixpath.'/c/user.gif';
                     $popupalt  = '';
                 }
-                $popupcontent .= '<div><img height=16 width=16 src="'.$popupicon.'" style="vertical-align: middle; margin-right: 4px;" alt="'.$popupalt.'" /><a href="'.$dayhref.'">'.$event->name.'</a></div>';
+                $popupcontent .= '<div><img height="16" width="16" src="'.$popupicon.'" style="vertical-align: middle; margin-right: 4px;" alt="'.$popupalt.'" /><a href="'.$dayhref.'">'.$event->name.'</a></div>';
             }
 
             $popupcaption = get_string('eventsfor', 'calendar', userdate($events[$eventid]->timestart, $strftimetimedayshort));
-            $popupcontent = str_replace("'", "\'", htmlSpecialChars($popupcontent));
+            $popupcontent = str_replace("'", "\'", htmlspecialchars($popupcontent));
             $popup = 'onmouseover="return overlib(\''.$popupcontent.'\', CAPTION, \''.$popupcaption.'\');" onmouseout="return nd();"';
 
             // Class and cell content