]> git.mjollnir.org Git - moodle.git/commitdiff
Fix some XHTML and untranslated text
authormoodler <moodler>
Thu, 16 Aug 2007 07:42:28 +0000 (07:42 +0000)
committermoodler <moodler>
Thu, 16 Aug 2007 07:42:28 +0000 (07:42 +0000)
blocks/tag_youtube/block_tag_youtube.php

index 14815dff8a8aeff6934fe4ce0d088210ff718b88..87b68bc8b3ffa216737f0e0faaf419fc32127ff8 100644 (file)
@@ -160,16 +160,14 @@ class block_tag_youtube extends block_base {
         foreach($videos as $video){
             $text .= '<tr>';
             $text .= '<td>';
-            $text .= '<a href="'. $video['url'] . '">';
-            $text .= '<img alt="'.s($video['title']).'" class="youtube-thumb" title="'.$video['title'].'" style="padding:3px;" src="' . $video['thumbnail_url'] . '"/>' ;
+            $text .= '<a href="'. s($video['url']) . '">';
+            $text .= '<img alt="'.s($video['title']).'" class="youtube-thumb" title="'.s($video['title']).'" style="padding:3px;" src="' . $video['thumbnail_url'] . '"/>' ;
             $text .= "</a>";
             $text .= "</td>";
             $text .= '<td>';
-            $text .= '<a href="'. $video['url'] . '">'.$video['title']. '</a>';
+            $text .= '<a href="'. s($video['url']) . '">'.s($video['title']). '</a>';
             $text .= '<br/>';
             $text .= format_time($video['length_seconds']);
-            $text .= '<br/>';
-            $text .= 'views: ' . $video['view_count'] ;
             $text .= '</td>';
             $text .= '</tr>';
         }