MDL-66307 js: Add missing plugintypes structure in subplugin read

This commit is contained in:
Andrew Nicols
2019-08-01 20:52:02 +08:00
parent f622ee97e3
commit 2c28ba8888
+2 -2
View File
@@ -72,7 +72,7 @@ module.exports = ({ template, types }) => {
var rawContents = fs.readFileSync(file);
var subplugins = JSON.parse(rawContents);
for (const [component, path] of Object.entries(subplugins)) {
for (const [component, path] of Object.entries(subplugins.plugintypes)) {
if (path) {
moodlePlugins[path] = component;
}
@@ -202,4 +202,4 @@ module.exports = ({ template, types }) => {
}
}
};
};
};