From ae2a213e1e35e2daeec67949db73099ee2c6800a Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Tue, 24 May 2011 10:01:56 +0100 Subject: [PATCH] MDL-27171 lib/moodlelib: change the order of plugins returned by get_plugin_types function We need to ensure that message/output is installed first so that default messaging settings are set correctly afterwards. Signed-off-by: Ruslan Kabalin --- lib/moodlelib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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',