MDL-68528 js: Normalise core component for template strings

This commit is contained in:
Andrew Nicols
2020-05-19 11:40:44 +08:00
parent ed0328397a
commit bc9426c879
3 changed files with 6 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+4
View File
@@ -508,6 +508,10 @@ define([
param = parts.join(',').trim();
}
if (!component || component === 'moodle') {
component = 'core';
}
if (param !== '') {
// Allow variable expansion in the param part only.
param = helper(param, context);