mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-14741 - Prevent installation problem, preventing use of html on first-time configuration of site name
This commit is contained in:
parent
745bf9989d
commit
a6cbe74cf5
@ -2633,7 +2633,11 @@ class admin_setting_special_frontpagedesc extends admin_setting {
|
||||
global $CFG, $htmlEditorObject;
|
||||
|
||||
$CFG->adminusehtmleditor = can_use_html_editor();
|
||||
$return = '<div class="form-htmlarea">'.print_textarea($CFG->adminusehtmleditor, 15, 60, 0, 0, $this->get_full_name(), $data, 0, true, 'summary'). print($htmlEditorObject->activateEditor($this->get_full_name, 'summary')) .'</div>';
|
||||
$return = '<div class="form-htmlarea">'.print_textarea($CFG->adminusehtmleditor, 15, 60, 0, 0, $this->get_full_name(), $data, 0, true, 'summary');
|
||||
if ($CFG->adminusehtmleditor && !is_null($htmlEditorObject)) {
|
||||
$return .= $htmlEditorObject->activateEditor($this->get_full_name, 'summary');
|
||||
}
|
||||
$return .= '</div>';
|
||||
|
||||
return format_admin_setting($this, $this->visiblename, $return, $this->description, false, '', NULL, $query);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user