Reverting changes for the tests
This commit is contained in:
parent
68496f6e15
commit
4e6dc34d6e
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue