]> git.mxchange.org Git - friendica.git/blobdiff - mod/editpost.php
Display the publish time in the local timezone
[friendica.git] / mod / editpost.php
index 6f80bac0c1ad21b148b5d6bc0b7d351bf3e46e82..848e1ce862706dce946548db2d03d50330fc3cce 100644 (file)
@@ -38,7 +38,7 @@ function editpost_content(App $a)
                return;
        }
 
-       $post_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
+       $post_id = ((DI::args()->getArgc() > 1) ? intval(DI::args()->getArgv()[1]) : 0);
 
        if (!$post_id) {
                notice(DI::l10n()->t('Item not found'));
@@ -124,7 +124,6 @@ function editpost_content(App $a)
                '$profile_uid' => $_SESSION['uid'],
                '$preview' => DI::l10n()->t('Preview'),
                '$jotplugins' => $jotplugins,
-               '$sourceapp' => DI::l10n()->t($a->sourcename),
                '$cancel' => DI::l10n()->t('Cancel'),
                '$rand_num' => Crypto::randomDigits(12),