MDL-21657 frankenstyle fix for incorrect rating plurals
authorPetr Skoda <skodak@moodle.org>
Thu, 1 Apr 2010 20:33:15 +0000 (20:33 +0000)
committerPetr Skoda <skodak@moodle.org>
Thu, 1 Apr 2010 20:33:15 +0000 (20:33 +0000)
lib/outputrenderers.php
lib/outputrequirementslib.php
rating/module.js

index ad5a001..253412e 100644 (file)
@@ -1241,7 +1241,7 @@ class core_renderer extends renderer_base {
 
         //include required Javascript
         if( !$havesetupjavascript && $useajax ) {
-            $this->page->requires->js_init_call('M.core_ratings.init');
+            $this->page->requires->js_init_call('M.core_rating.init');
             $havesetupjavascript = true;
         }
 
index badd7c3..20924bd 100644 (file)
@@ -400,8 +400,8 @@ class page_requirements_manager {
                                     'fullpath' => '/group/module.js',
                                     'requires' => array('node', 'overlay', 'event-mouseenter'));
                     break;
-                case 'core_ratings':
-                    $module = array('name'     => 'core_ratings',
+                case 'core_rating':
+                    $module = array('name'     => 'core_rating',
                                     'fullpath' => '/rating/module.js',
                                     'requires' => array('node', 'event', 'overlay', 'io', 'json'));
                     break;
index af7b4a8..e1467ac 100644 (file)
@@ -1,4 +1,4 @@
-M.core_ratings={
+M.core_rating={
 
     Y : null,
     transaction : [],