diff --git a/lib/editor/popups/insert_image.php b/lib/editor/popups/insert_image.php
index 44ba2e6dccd..8e587105da9 100644
--- a/lib/editor/popups/insert_image.php
+++ b/lib/editor/popups/insert_image.php
@@ -2,12 +2,14 @@
include("../../../config.php");
- require_variable($id);
+ require_variable($id);
if (!$course = get_record("course", "id", $id)) {
$course->fullname = ""; // Just to keep display happy, though browsing may fail
}
-
+
+ $upload_max_filesize = get_max_upload_file_size($CFG->maxbytes);
+
?>
@@ -265,11 +267,11 @@ form { margin-bottom: 0px; margin-top: 0px; }
print "";
}?>
wwwroot."/lib/editor/coursefiles.php?usecheckboxes=true&id=".$course->id."\" style=\"width: 100%; height: 200px;\">":
- "";?>
+ "":
+ "";?>