From: Hypolite Petovan Date: Tue, 8 Sep 2020 18:06:14 +0000 (-0400) Subject: Merge branch 'bug/phpinfo-accessible-hotfix' into develop X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee8689cc899beecaf0943ac175550a7fb49cf199;p=friendica.git Merge branch 'bug/phpinfo-accessible-hotfix' into develop # Conflicts: # src/Module/Admin/DBSync.php # src/Module/Admin/Logs/Settings.php # src/Module/Admin/Themes/Details.php # src/Module/Admin/Themes/Embed.php --- ee8689cc899beecaf0943ac175550a7fb49cf199 diff --cc src/Module/Admin/Users.php index 41a691b0b7,74fee7230a..214671634e --- a/src/Module/Admin/Users.php +++ b/src/Module/Admin/Users.php @@@ -101,15 -101,13 +101,13 @@@ class Users extends BaseAdmi { parent::content($parameters); - $a = DI::app(); + $action = $parameters['action'] ?? ''; + $uid = $parameters['uid'] ?? 0; - if ($a->argc > 3) { - // @TODO: Replace with parameter from router - $action = $a->argv[2]; - $uid = $a->argv[3]; + if ($uid) { $user = User::getById($uid, ['username', 'blocked']); if (!DBA::isResult($user)) { - notice('User not found' . EOL); + notice(DI::l10n()->t('User not found')); DI::baseUrl()->redirect('admin/users'); return ''; // NOTREACHED }