MDL-65646 core: Move component storage to json

This commit is contained in:
Andrew Nicols
2019-06-13 12:26:00 +08:00
parent f3507273e9
commit 29c442c558
31 changed files with 348 additions and 184 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"plugintypes": {
"tinymce": "lib\/editor\/tinymce\/plugins"
}
}
+2 -1
View File
@@ -24,4 +24,5 @@
defined('MOODLE_INTERNAL') || die();
$subplugins = array('tinymce' => 'lib/editor/tinymce/plugins');
debugging('Use of subplugins.php has been deprecated. Please provide a subplugins.json instead.', DEBUG_DEVELOPER);
$subplugins = (array) json_decode(file_get_contents(__DIR__ . "/subplugins.json"))->plugintypes;