From: Petr Skoda Date: Mon, 4 Jul 2011 15:09:28 +0000 (+0200) Subject: MDL-28117 include repo lib when hacking file_picker renderer X-Git-Tag: v2.2.0-beta~743^2 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=3f8465ca4bc2b693cb93951c6a6d2c3492c6c0c0 MDL-28117 include repo lib when hacking file_picker renderer --- diff --git a/mod/data/field/url/field.class.php b/mod/data/field/url/field.class.php index b22e4f84aac..1c453739e49 100644 --- a/mod/data/field/url/field.class.php +++ b/mod/data/field/url/field.class.php @@ -28,6 +28,8 @@ class data_field_url extends data_field_base { function display_add_field($recordid=0) { global $CFG, $DB, $OUTPUT, $PAGE; + require_once($CFG->dirroot. '/repository/lib.php'); // necessary for the constants used in args + $args = new stdClass(); $args->accepted_types = '*'; $args->return_types = FILE_EXTERNAL;