Skip to content

Commit

Permalink
Merge branch 'w13_MDL-22733_20_youtubeiframe' of git://github.com/sko…
Browse files Browse the repository at this point in the history
…dak/moodle into MOODLE_20_STABLE
  • Loading branch information
stronk7 committed Mar 28, 2011
2 parents 1be2b90 + c4b491a commit d245530
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions filter/mediaplugin/filter.php
Expand Up @@ -672,8 +672,7 @@ function filter_mediaplugin_youtube_callback($link) {
$width = empty($link[5]) ? FILTER_MEDIAPLUGIN_VIDEO_WIDTH : $link[5];
$height = empty($link[6]) ? FILTER_MEDIAPLUGIN_VIDEO_HEIGHT : $link[6];

if (false and empty($CFG->xmlstrictheaders)) {
// TODO: remove this once iframe playback starts to work properly in iPads
if (empty($CFG->xmlstrictheaders)) {
return <<<OET
<iframe title="$info" width="$width" height="$height" src="$site/embed/$videoid?rel=0" frameborder="0" allowfullscreen></iframe>
OET;
Expand Down

0 comments on commit d245530

Please sign in to comment.