diff --git a/lib/weblib.php b/lib/weblib.php index 4daa5c4a7e7..17d47d7f6d4 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3883,7 +3883,7 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v if ($usehtmleditor) { if (!empty($courseid) and has_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $courseid))) { - $httpsrequired = empty($HTTPSPAGEREQUIRED) ? '' : '&httpsrequired=1'; + $httpsrequired = empty($HTTPSPAGEREQUIRED) ? '' : '&httpsrequired=1'; // needed for course file area browsing in image insert plugin $str .= ($scriptcount < 1) ? ''."\n" : '';