MDL-28117 include repo lib when hacking file_picker renderer
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
5bda351ef7
commit
413b73ffe3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user