diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-04-06 10:30:26 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-04-06 10:30:26 -0700 |
commit | 7a4d1861e23798e2fda7d9d3c750b8d13b55c5a8 (patch) | |
tree | b0b4600a178115c21b73aa09b46b1595b9ed569d /classes | |
parent | 271e824fae382c2b605d73135597a42323f691a9 (diff) | |
download | elgg-7a4d1861e23798e2fda7d9d3c750b8d13b55c5a8.tar.gz elgg-7a4d1861e23798e2fda7d9d3c750b8d13b55c5a8.tar.bz2 |
Started adding back quota support.
Diffstat (limited to 'classes')
-rw-r--r-- | classes/TidypicsImage.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/TidypicsImage.php b/classes/TidypicsImage.php index c0b5de723..dd4324468 100644 --- a/classes/TidypicsImage.php +++ b/classes/TidypicsImage.php @@ -244,6 +244,11 @@ class TidypicsImage extends ElggFile { trigger_error('Tidypics warning: image memory size too large for resizing so rejecting', E_USER_WARNING); throw new Exception(elgg_echo('tidypics:image_pixels')); } + + // make sure file fits quota + if (!tp_upload_check_quota($data['size'], elgg_get_logged_in_user_guid())) { + throw new Exception(elgg_echo('tidypics:cannot_upload_exceeds_quota')); + } } /** |