diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-14 15:50:06 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-14 15:50:06 -0400 |
commit | c7bd5fb64003c42f9299b7203af9a13bcd48948f (patch) | |
tree | d962c172af9395c734d345aa43d95561ea3ccf24 /lib | |
parent | 2d8b04169dda48a5dba8503d9943bdeee2c64685 (diff) | |
download | elgg-c7bd5fb64003c42f9299b7203af9a13bcd48948f.tar.gz elgg-c7bd5fb64003c42f9299b7203af9a13bcd48948f.tar.bz2 |
added quota back
Diffstat (limited to 'lib')
-rw-r--r-- | lib/upload.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/upload.php b/lib/upload.php index 0b034517c..a83323f16 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -111,9 +111,9 @@ function tp_upload_check_quota($image_size, $owner_guid) { // no quota return true; } - - $image_repo_size_md = get_metadata_byname($owner_guid, "image_repo_size"); - $image_repo_size = (int)$image_repo_size_md->value; + + $owner = get_entity($owner_guid); + $image_repo_size_md = (int)$owner->image_repo_size; return ($image_repo_size + $image_size) < $quota; }
\ No newline at end of file |