Skip to content

Commit

Permalink
MDL-21657 frankenstyle fix for incorrect rating plurals
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 1, 2010
1 parent b313071 commit 3dcdf44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ function render_rating(rating $rating) {

//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;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/outputrequirementslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ protected function find_module($name) {
'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;
Expand Down
2 changes: 1 addition & 1 deletion rating/module.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
M.core_ratings={
M.core_rating={

Y : null,
transaction : [],
Expand Down

0 comments on commit 3dcdf44

Please sign in to comment.