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 <ruslan.kabalin@luns.net.uk>
This commit is contained in:
Ruslan Kabalin
2011-05-24 10:01:56 +01:00
parent 7a04c476a2
commit ae2a213e1e
+4 -2
View File
@@ -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',