aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-07 14:10:28 -0800
committerfriendica <info@friendica.com>2014-01-07 14:10:28 -0800
commitb8564134aaffc2ebe35fecd5dae4fd0f6523eb53 (patch)
tree1271c4ea29d9286c20da88cb2969c09e2a4af841 /include/attach.php
parente635dcb3092da962c29fe4c8e4ddc53de368002d (diff)
downloadvolse-hubzilla-b8564134aaffc2ebe35fecd5dae4fd0f6523eb53.tar.gz
volse-hubzilla-b8564134aaffc2ebe35fecd5dae4fd0f6523eb53.tar.bz2
volse-hubzilla-b8564134aaffc2ebe35fecd5dae4fd0f6523eb53.zip
make storage limit service classes apply to accounts, not channels. Also include a css file that was missing from work yesterday.
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index b48dd211a..c05c39020 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -330,8 +330,8 @@ function attach_store($channel,$observer_hash,$options = '',$arr = null) {
$limit = service_class_fetch($channel_id,'attach_upload_limit');
if($limit !== false) {
- $r = q("select sum(filesize) as total from attach where uid = %d ",
- intval($channel_id)
+ $r = q("select sum(filesize) as total from attach where aid = %d ",
+ intval($channel['channel_account_id'])
);
if(($r) && (($r[0]['total'] + $filesize) > ($limit - $existing_size))) {
$ret['message'] = upgrade_message(true).sprintf(t("You have reached your limit of %1$.0f Mbytes attachment storage."),$limit / 1024000);