]> git.mjollnir.org Git - moodle.git/commitdiff
flash upgrader MDL-20841 replace yui calls by correct ones. Kudo to Sam H.
authorjerome mouneyrac <jerome@moodle.com>
Wed, 2 Dec 2009 08:39:22 +0000 (08:39 +0000)
committerjerome mouneyrac <jerome@moodle.com>
Wed, 2 Dec 2009 08:39:22 +0000 (08:39 +0000)
lib/outputrenderers.php

index c0a79812727e72e5efc05ffc0a3a05d7313177be..9c26d4f8f5945187f257d2db53fe3044f7b064cb 100644 (file)
@@ -512,9 +512,8 @@ class moodle_core_renderer extends moodle_renderer_base {
 
         /// Perform a browser environment check for the flash version.  Should only run once per login session.
         if (isloggedin() && !empty($CFG->excludeoldflashclients) && empty($SESSION->flashversion)) {
-            $this->page->requires->js('lib/yui/yahoo/yahoo-min.js')->in_head();
-            $this->page->requires->js('lib/yui/event/event-min.js')->in_head();
-            $this->page->requires->js('lib/yui/connection/connection-min.js')->in_head();
+            $this->page->requires->yui_lib('event')->in_head();
+            $this->page->requires->yui_lib('connection')->in_head();
             $this->page->requires->js('lib/swfobject/swfobject.js')->in_head();
             $this->page->requires->js('lib/flashdetect/flashdetect.js')->in_head();
             $this->page->requires->js_function_call('setflashversiontosession', array($CFG->wwwroot, sesskey()));