Skip to content
Browse files

MDL-27069 fix notice when inserting images in editor

  • Loading branch information...
1 parent fb8642b commit 7e58c03d6cb2bfaa84a5bf0f8f513522b71e2a9f @skodak skodak committed Apr 10, 2011
Showing with 3 additions and 0 deletions.
  1. +1 −0 lib/editor/htmlarea/popups/insert_image.php
  2. +2 −0 lib/editor/htmlarea/popups/insert_image_std.php
View
1 lib/editor/htmlarea/popups/insert_image.php
@@ -3,6 +3,7 @@
require("../../../../config.php");
$id = optional_param('id', SITEID, PARAM_INT);
+ $httpsrequired = optional_param('httpsrequired', 0, PARAM_BOOL);
require_login($id);
require_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $id));
View
2 lib/editor/htmlarea/popups/insert_image_std.php
@@ -2,8 +2,10 @@
require("../../../../config.php");
$id = optional_param('id', SITEID, PARAM_INT);
+ $httpsrequired = optional_param('httpsrequired', 0, PARAM_BOOL);
require_course_login($id);
+
@header('Content-Type: text/html; charset=utf-8');
if ($httpsrequired or (!empty($_SERVER['HTTPS']) and $_SERVER['HTTPS'] != 'off')) {

0 comments on commit 7e58c03

Please sign in to comment.
Something went wrong with that request. Please try again.