"MDL-15405, data module to use filemanager"

This commit is contained in:
Dongsheng Cai
2010-03-05 05:37:09 +00:00
parent cfa8f37d5c
commit 26032c2d20
4 changed files with 187 additions and 45 deletions
+8
View File
@@ -120,6 +120,14 @@ if ($data->jstemplate) {
$PAGE->requires->js('/mod/data/js.php?d='.$data->id, true);
}
$possiblefields = $DB->get_records('data_fields', array('dataid'=>$data->id), 'id');
foreach ($possiblefields as $field) {
if ($field->type == 'file') {
require_once($CFG->dirroot.'/repository/lib.php');
break;
}
}
/// Print the page header
$strdata = get_string('modulenameplural','data');