Permalink
Browse files

MDL-36099 AJAX Ensure that a galleryversion is always set for yui_mod…

…ule calls
  • Loading branch information...
1 parent ecfe814 commit 09f200aa62f14023f4236ba705978919f455b807 @andrewnicols andrewnicols committed Oct 17, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/outputrequirementslib.php
@@ -677,9 +677,13 @@ public function js_gallery_module($modules, $version, $function, array $argument
* @param string $galleryversion The gallery version to use
* @param bool $ondomready
*/
- public function yui_module($modules, $function, array $arguments = null, $galleryversion = '2010.04.08-12-35', $ondomready = false) {
+ public function yui_module($modules, $function, array $arguments = null, $galleryversion = null, $ondomready = false) {
global $CFG;
+ if (!$galleryversion) {
+ $galleryversion = '2010.04.08-12-35';
+ }
+
if (!is_array($modules)) {
$modules = array($modules);
}

0 comments on commit 09f200a

Please sign in to comment.