aboutsummaryrefslogtreecommitdiffstats
path: root/include/reddav.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/reddav.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/reddav.php')
-rw-r--r--include/reddav.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/reddav.php b/include/reddav.php
index 05a93b9f8..3bf670711 100644
--- a/include/reddav.php
+++ b/include/reddav.php
@@ -160,8 +160,8 @@ class RedDirectory extends DAV\Node implements DAV\ICollection {
$limit = service_class_fetch($c[0]['channel_id'],'attach_upload_limit');
if($limit !== false) {
- $x = q("select sum(filesize) as total from attach where uid = %d ",
- intval($c[0]['channel_id'])
+ $x = q("select sum(filesize) as total from attach where aid = %d ",
+ intval($c[0]['channel_account_id'])
);
if(($x) && ($x[0]['total'] + $r[0]['filesize'] > $limit)) {
q("delete from attach where hash = '%s' and uid = %d limit 1",
@@ -359,8 +359,8 @@ class RedFile extends DAV\Node implements DAV\IFile {
$limit = service_class_fetch($c[0]['channel_id'],'attach_upload_limit');
if($limit !== false) {
- $x = q("select sum(filesize) as total from attach where uid = %d ",
- intval($c[0]['channel_id'])
+ $x = q("select sum(filesize) as total from attach where aid = %d ",
+ intval($c[0]['channel_account_id'])
);
if(($x) && ($x[0]['total'] + $r[0]['filesize'] > $limit)) {
q("delete from attach where hash = '%s' and uid = %d limit 1",