aboutsummaryrefslogtreecommitdiff
path: root/classes/TidypicsImage.php
diff options
context:
space:
mode:
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']) {