From 4d7e89d72c60e2e6452457cadb22b883c3b73348 Mon Sep 17 00:00:00 2001 From: Glenn Ansley Date: Fri, 27 Jan 2012 10:22:59 -0500 Subject: [PATCH] MDL-31311 Enhance unhelpful iframe title attributes --- mod/resource/locallib.php | 3 ++- mod/url/locallib.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/resource/locallib.php b/mod/resource/locallib.php index dcd8dfedfb0..df2b0b638f2 100644 --- a/mod/resource/locallib.php +++ b/mod/resource/locallib.php @@ -155,6 +155,7 @@ function resource_display_frame($resource, $cm, $course, $file) { $navurl = "$CFG->wwwroot/mod/resource/view.php?id=$cm->id&frameset=top"; $title = strip_tags(format_string($course->shortname.': '.$resource->name)); $framesize = $config->framesize; + $contentframetitle = format_string($resource->name); $modulename = s(get_string('modulename','resource')); $dir = get_string('thisdirection', 'langconfig'); @@ -167,7 +168,7 @@ function resource_display_frame($resource, $cm, $course, $file) { - + EOF; diff --git a/mod/url/locallib.php b/mod/url/locallib.php index 6f020353d02..70e7efc1b9e 100644 --- a/mod/url/locallib.php +++ b/mod/url/locallib.php @@ -228,6 +228,7 @@ function url_display_frame($url, $cm, $course) { $title = strip_tags($courseshortname.': '.format_string($url->name)); $framesize = $config->framesize; $modulename = s(get_string('modulename','url')); + $contentframetitle = format_string($url->name); $dir = get_string('thisdirection', 'langconfig'); $extframe = << - + EOF;