From 4e6dc34d6e5adcb032419efadf273c026b7d1ad2 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 25 Jul 2021 13:39:58 +0000 Subject: [PATCH] Reverting changes for the tests --- mod/wall_upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/wall_upload.php b/mod/wall_upload.php index 7973f1c96f..c99c43fa0a 100644 --- a/mod/wall_upload.php +++ b/mod/wall_upload.php @@ -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) {