From: nicolasconnault Date: Thu, 20 Aug 2009 13:16:51 +0000 (+0000) Subject: MDL-19812 Upgraded calls to link_to_popup_window() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=350dc925f37175670cb3eac5f0264ef4b7ec0047;p=moodle.git MDL-19812 Upgraded calls to link_to_popup_window() --- diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index fe96145e82..f88658a752 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -1765,7 +1765,11 @@ function lesson_mediafile_block_contents($cmid, $lesson) { $options = 'menubar=0,location=0,left=5,top=5,scrollbars,resizable,width='. $lesson->mediawidth .',height='. $lesson->mediaheight; $name = 'lessonmediafile'; - $content = link_to_popup_window ($url, $name, get_string('mediafilepopup', 'lesson'), '', '', get_string('mediafilepopup', 'lesson'), $options, true); + $link = html_link::make($url, get_string('mediafilepopup', 'lesson')); + $link->add_action(new popup_action('click', $link->url, $name, $options)); + $link->title = get_string('mediafilepopup', 'lesson'); + $content .= $OUTPUT->link($link); + $content .= $OUTPUT->help_icon(moodle_help_icon::make("mediafilestudent", get_string("mediafile", "lesson"), "lesson")); $bc = new block_contents();