]> git.mxchange.org Git - friendica.git/blobdiff - mod/attach.php
Rewrite Proxy module
[friendica.git] / mod / attach.php
index 97eb10997e6bbe5cf2d364cc12c9385495c2ed70..cf2c8cc6dd55d68191fb94d639dce31e7158f3bd 100644 (file)
@@ -8,8 +8,6 @@ use Friendica\Core\L10n;
 use Friendica\Database\DBA;
 use Friendica\Util\Security;
 
-require_once 'include/dba.php';
-
 function attach_init(App $a)
 {
        if ($a->argc != 2) {
@@ -27,7 +25,7 @@ function attach_init(App $a)
                return;
        }
 
-       $sql_extra = Security::permissions_sql($r['uid']);
+       $sql_extra = Security::getPermissionsSQLByUserId($r['uid']);
 
        // Now we'll see if we can access the attachment