diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 3dee9f948be..3375f5a18b1 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -7067,10 +7067,12 @@ function get_plugin_types($fullpaths=true) { static $fullinfo = null; if (!$info) { - $info = array('mod' => 'mod', + // BEWARE: message/output should always be the first as we need to have + // message outputs installed before installing every other plugin. + $info = array('message' => 'message/output', + 'mod' => 'mod', 'auth' => 'auth', 'enrol' => 'enrol', - 'message' => 'message/output', 'block' => 'blocks', 'filter' => 'filter', 'editor' => 'lib/editor',