Permalink
Browse files

resource/file MDL-20327 force target attributes on frame navigation f…

…or non-JS
  • Loading branch information...
moodler
moodler committed Sep 24, 2009
1 parent 163fa26 commit 4c1f29b738c832d1523211107e1139e2013a05e3
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/resource/type/file/resource.class.php
@@ -480,6 +480,9 @@ function resizeEmbeddedHtml() {
if (!empty( $frameset ) and ($frameset == "top") ) {
+ // Force target atttributes on links. Not Strict but we are already using frames anyway! MDL-20327
+ $CFG->frametarget = ' target="'.$CFG->framename.'" ';
+
print_header($pagetitle, $course->fullname, "$this->navigation ".format_string($resource->name), "", "", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, "parent"));
$options = new object();

0 comments on commit 4c1f29b

Please sign in to comment.