Permalink
Browse files

MDL-37552 external_format_text: missing require_once filelib.php (sha…

…red credits to Adam Fredericks for report and patch proposal)
  • Loading branch information...
1 parent 70d7e35 commit d2705248554bf95faa4a5621aa14e42c42606b3d @mouneyrac mouneyrac committed May 7, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/externallib.php
View
@@ -687,6 +687,7 @@ function external_format_text($text, $textformat, $contextid, $component, $filea
$settings = external_settings::get_instance();
if ($settings->get_fileurl()) {
+ require_once($CFG->libdir . "/filelib.php");
$text = file_rewrite_pluginfile_urls($text, $settings->get_file(), $contextid, $component, $filearea, $itemid);
}

0 comments on commit d270524

Please sign in to comment.