]> git.mxchange.org Git - friendica.git/blobdiff - mod/editpost.php
Replaced argv/argc with replacement functions
[friendica.git] / mod / editpost.php
index ee72b1e64e574980cb050e2ab235e981e61fe22a..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'));