course publication MDL-19315 fix for gallery JS call (Sam's fix)
authorjerome mouneyrac <jerome@moodle.com>
Wed, 14 Jul 2010 09:44:11 +0000 (09:44 +0000)
committerjerome mouneyrac <jerome@moodle.com>
Wed, 14 Jul 2010 09:44:11 +0000 (09:44 +0000)
lib/outputrenderers.php

index f49cec9..0536e6f 100644 (file)
@@ -2454,7 +2454,8 @@ EOD;
      * @return string
      */
     protected function render_image_gallery(image_gallery $imagegallery) {
-        $this->page->requires->js_gallery_module(array('gallery-lightbox','gallery-lightbox-skin'), '2010.04.08-12-35', 'Y.Lightbox.init');
+        $this->page->requires->yui_module(array('gallery-lightbox','gallery-lightbox-skin'), 
+                 'Y.Lightbox.init', null, '2010.04.08-12-35');
         if (count($imagegallery->images) == 0) {
             return '';
         }