From: nicolasconnault <nicolasconnault>
Date: Thu, 20 Aug 2009 13:17:53 +0000 (+0000)
Subject: MDL-19824 Upgraded calls to link_to_popup_window()
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5a142c82213f9ba754029787e11cc68702d62353;p=moodle.git

MDL-19824 Upgraded calls to link_to_popup_window()
---

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.