Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9945ec5
)
MDL-33445 reverted file size check for files inserted by reference
author
Marina Glancy
<marina@moodle.com>
Tue, 5 Jun 2012 05:57:16 +0000
(13:57 +0800)
committer
Marina Glancy
<marina@moodle.com>
Tue, 5 Jun 2012 05:57:16 +0000
(13:57 +0800)
repository/repository_ajax.php
patch
|
blob
|
blame
|
history
diff --git
a/repository/repository_ajax.php
b/repository/repository_ajax.php
index
5258fb5
..
240faf3
100644
(file)
--- a/
repository/repository_ajax.php
+++ b/
repository/repository_ajax.php
@@
-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.