]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_upload.php
Display the publish time in the local timezone
[friendica.git] / mod / wall_upload.php
index feb960f7aa9703b1c4d2f19ca22b4eb935f3d7c4..7973f1c96f4741aad6620278a9c37fd0fa4e7de5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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 ($a->argc > 1) {
+       if (DI::args()->getArgc() > 1) {
                if (empty($_FILES['media'])) {
-                       $nick = $a->argv[1];                    
+                       $nick = DI::args()->getArgv()[1];                       
                        $user = DBA::selectFirst('owner-view', ['id', 'uid', 'nickname', 'page-flags'], ['nickname' => $nick, 'blocked' => false]);
                        if (!DBA::isResult($user)) {
                                if ($r_json) {