MDL-42769 use only text area editor before install completed

This commit is contained in:
Petr Škoda
2013-11-07 23:51:59 +01:00
parent 5b5447fa83
commit 8213007c7f
+6 -1
View File
@@ -33,7 +33,12 @@ defined('MOODLE_INTERNAL') || die();
* @return texteditor object
*/
function editors_get_preferred_editor($format = NULL) {
global $USER;
global $USER, $CFG;
if (!empty($CFG->adminsetuppending)) {
// Must not use other editors before install completed!
return get_texteditor('textarea');
}
$enabled = editors_get_enabled();