aboutsummaryrefslogtreecommitdiff
path: root/classes/TidypicsImage.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-14 15:50:06 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-14 15:50:06 -0400
commitc7bd5fb64003c42f9299b7203af9a13bcd48948f (patch)
treed962c172af9395c734d345aa43d95561ea3ccf24 /classes/TidypicsImage.php
parent2d8b04169dda48a5dba8503d9943bdeee2c64685 (diff)
downloadelgg-c7bd5fb64003c42f9299b7203af9a13bcd48948f.tar.gz
elgg-c7bd5fb64003c42f9299b7203af9a13bcd48948f.tar.bz2
added quota back
Diffstat (limited to 'classes/TidypicsImage.php')
-rw-r--r--classes/TidypicsImage.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/TidypicsImage.php b/classes/TidypicsImage.php
index 672a0df20..5a8d42ccc 100644
--- a/classes/TidypicsImage.php
+++ b/classes/TidypicsImage.php
@@ -217,11 +217,15 @@ class TidypicsImage extends ElggFile {
}
$owner = $this->getOwnerEntity();
- $owner->image_repo_size = (int)$owner->image_repo_size + $size;
+ $owner->image_repo_size = (int)$owner->image_repo_size + $this->size();
return true;
}
+ /**
+ * Need to restore sanity to this function
+ * @param type $data
+ */
protected function checkUploadErrors($data) {
// check for upload errors
if ($data['error']) {