X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Feditpost.php;h=848e1ce862706dce946548db2d03d50330fc3cce;hb=0c0abd923822994d808273ed60c149d34b49a76f;hp=ee72b1e64e574980cb050e2ab235e981e61fe22a;hpb=9cc4682e0a6957d40ecc9a931ddd5b8f32c594b6;p=friendica.git diff --git a/mod/editpost.php b/mod/editpost.php index ee72b1e64e..848e1ce862 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -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'));