]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19824 Upgraded calls to link_to_popup_window()
authornicolasconnault <nicolasconnault>
Thu, 20 Aug 2009 13:17:53 +0000 (13:17 +0000)
committernicolasconnault <nicolasconnault>
Thu, 20 Aug 2009 13:17:53 +0000 (13:17 +0000)
theme/index.php

index 588138a4db4ea5a52b8cb233eeff132a24a66013..dfe64b373d0c5d18635893cce1cb99c7bb86c8e0 100644 (file)
@@ -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.