aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-04-06 10:30:26 -0700
committerBrett Profitt <brett.profitt@gmail.com>2012-04-06 10:30:26 -0700
commit7a4d1861e23798e2fda7d9d3c750b8d13b55c5a8 (patch)
treeb0b4600a178115c21b73aa09b46b1595b9ed569d /classes
parent271e824fae382c2b605d73135597a42323f691a9 (diff)
downloadelgg-7a4d1861e23798e2fda7d9d3c750b8d13b55c5a8.tar.gz
elgg-7a4d1861e23798e2fda7d9d3c750b8d13b55c5a8.tar.bz2
Started adding back quota support.
Diffstat (limited to 'classes')
-rw-r--r--classes/TidypicsImage.php5
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'));
+ }
}
/**