From 5a142c82213f9ba754029787e11cc68702d62353 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 20 Aug 2009 13:17:53 +0000 Subject: [PATCH] MDL-19824 Upgraded calls to link_to_popup_window() --- theme/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/theme/index.php b/theme/index.php index 588138a4db..dfe64b373d 100644 --- a/theme/index.php +++ b/theme/index.php @@ -108,7 +108,9 @@ foreach ($themes as $themename => $themedir) { $readmeurl = $CFG->themewww .'/'. $themename .'/README.txt'; } if ($readmeurl) { - $infoitems['readme'] = link_to_popup_window($readmeurl, $themename, get_string('info'), 400, 500, '', 'none', true); + $link = html_link::make($readmeurl, get_string('info')); + $link->add_action(new popup_action('click', $link->url, $themename)); + $infoitems['readme'] = $OUTPUT->link($link); } // Contents of the first screenshot/preview cell. -- 2.39.5