Store config values that are used inside a loop.

This commit is contained in:
green-ponies (jgen)
2012-02-04 12:20:49 -05:00
parent 1a8c2d31c7
commit 0a1e8f2af4
2 changed files with 12 additions and 6 deletions

View File

@ -58,6 +58,8 @@ class Upload extends SimpleExtension {
$this->is_full = false;
}
else {
// TODO: This size limit should be configureable by the admin...
// currently set to 100 MB
$this->is_full = $free_num < 100*1024*1024;
}