Merge branch 'w26_MDL-28117_m22_dataurlhack' of git://github.com/skodak/moodle
This commit is contained in:
@@ -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