diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/TidypicsImage.php | 6 |
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']) { |