MDL-28117 include repo lib when hacking file_picker renderer

This commit is contained in:
Petr Skoda
2011-07-07 01:34:35 +02:00
committed by Eloy Lafuente (stronk7)
parent 5bda351ef7
commit 413b73ffe3
+2
View File
@@ -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;