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 95190fd commit ea29059efa997b7234cdb2fd811f49f285f280ea @mouneyrac mouneyrac committed May 7, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/externallib.php
View
@@ -693,6 +693,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 ea29059

Please sign in to comment.