1
0
Fork 0

Reverting changes for the tests

This commit is contained in:
Michael 2021-07-25 13:39:58 +00:00
parent 68496f6e15
commit 4e6dc34d6e

View file

@ -43,9 +43,9 @@ function wall_upload_post(App $a, $desktopmode = true)
$r_json = (!empty($_GET['response']) && $_GET['response'] == 'json');
$album = trim($_GET['album'] ?? '');
if (DI::args()->getArgc() > 1) {
if ($a->argc > 1) {
if (empty($_FILES['media'])) {
$nick = DI::args()->getArgv()[1];
$nick = $a->argv[1];
$user = DBA::selectFirst('owner-view', ['id', 'uid', 'nickname', 'page-flags'], ['nickname' => $nick, 'blocked' => false]);
if (!DBA::isResult($user)) {
if ($r_json) {