Permalink
Browse files

MDL-28117 include repo lib when hacking file_picker renderer

  • Loading branch information...
1 parent 334b4f6 commit bde4f81335b23eb599f3b1487e7377362bae2d33 @skodak skodak committed with stronk7 Jul 4, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 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;

0 comments on commit bde4f81

Please sign in to comment.