diff --git a/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars-debug.js b/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars-debug.js index 6fe891012fb..2199ccac7af 100644 --- a/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars-debug.js +++ b/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars-debug.js @@ -11,6 +11,9 @@ Y.Handlebars.registerHelper('get_string', function() { // Pop off the Handlebars object at the end. args.pop(); + // Add the Handlebars hashtable to support get_string arguments. + args.push(arguments[arguments.length - 1].hash); + // Perform the get_string. return M.util.get_string.apply(this, args); }); diff --git a/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars-min.js b/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars-min.js index f19636b085e..1002c63b56a 100644 --- a/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars-min.js +++ b/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars-min.js @@ -1 +1 @@ -YUI.add("moodle-core-handlebars",function(e,t){e.Handlebars.registerHelper("get_string",function(){var t=new e.Array(arguments);return t.pop(),M.util.get_string.apply(this,t)}),e.Handlebars.registerHelper("image_url",function(){var t=new e.Array(arguments);return t.pop(),M.util.image_url.apply(this,t)})},"@VERSION@"); +YUI.add("moodle-core-handlebars",function(e,t){e.Handlebars.registerHelper("get_string",function(){var t=new e.Array(arguments);return t.pop(),t.push(arguments[arguments.length-1].hash),M.util.get_string.apply(this,t)}),e.Handlebars.registerHelper("image_url",function(){var t=new e.Array(arguments);return t.pop(),M.util.image_url.apply(this,t)})},"@VERSION@"); diff --git a/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars.js b/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars.js index 6fe891012fb..2199ccac7af 100644 --- a/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars.js +++ b/lib/yui/build/moodle-core-handlebars/moodle-core-handlebars.js @@ -11,6 +11,9 @@ Y.Handlebars.registerHelper('get_string', function() { // Pop off the Handlebars object at the end. args.pop(); + // Add the Handlebars hashtable to support get_string arguments. + args.push(arguments[arguments.length - 1].hash); + // Perform the get_string. return M.util.get_string.apply(this, args); }); diff --git a/lib/yui/src/handlebars/js/handlebars.js b/lib/yui/src/handlebars/js/handlebars.js index 4f0017a24da..85e6b52ff67 100644 --- a/lib/yui/src/handlebars/js/handlebars.js +++ b/lib/yui/src/handlebars/js/handlebars.js @@ -9,6 +9,9 @@ Y.Handlebars.registerHelper('get_string', function() { // Pop off the Handlebars object at the end. args.pop(); + // Add the Handlebars hashtable to support get_string arguments. + args.push(arguments[arguments.length - 1].hash); + // Perform the get_string. return M.util.get_string.apply(this, args); });