Merge branch 'wip-MDL-33409-master' of git://github.com/marinaglancy/moodle

This commit is contained in:
Dan Poltawski 2012-06-05 14:30:40 +08:00
commit c770311367

View File

@ -263,10 +263,6 @@ switch ($action) {
'icon' => $OUTPUT->pix_url(file_file_icon($storedfile, 32))->out(),
);
}
if ($maxbytes !== -1 && $storedfile->get_filesize() > $maxbytes) {
$storedfile->delete();
throw new file_exception('maxbytes');
}
// Repository plugin callback
// You can cache reository file in this callback
// or complete other tasks.