Commit 3f4b4b7f authored by Aaron Wells's avatar Aaron Wells Committed by Robert Lyon
Browse files

Prevent crashes when embedding images

Bug 1540667: Prior to commit c4329032, we were loading htdocs/artefact/internal/lib.php
on *every* page load, via the login auth method's code that checked for missing
internal artefact files. This call meant that we also loaded artefact/lib.php on
every page load.

Removing that for performance reasons, caused some calls to embeddedimages.php to fail,
when they were on pages that aren't otherwise requiring artefact/lib.php.

behatnotneeded: Can't use the image embedder from Behat

Change-Id: Ibcdbd17d289f2b4614c28ad522173286acc9bc27
parent 61d54baa
......@@ -10,6 +10,8 @@
defined('INTERNAL') || die();
global $CFG;
require_once($CFG->docroot . '/artefact/lib.php');
class EmbeddedImage {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment