From 66e9f0e0da788519344625a539c0f3dd3fc50179 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 24 Dec 2019 15:19:08 -0500 Subject: [PATCH] Remove unused albumname input in album drop modal - Addresses https://github.com/friendica/friendica/issues/8000#issuecomment-568798634 --- mod/photos.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index 2f3e7d311..1d7ce7b3d 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1035,14 +1035,10 @@ function photos_content(App $a) if ($cmd === 'drop') { $drop_url = $a->query_string; - $extra_inputs = [ - ['name' => 'albumname', 'value' => $_POST['albumname']], - ]; - return Renderer::replaceMacros(Renderer::getMarkupTemplate('confirm.tpl'), [ '$method' => 'post', '$message' => L10n::t('Do you really want to delete this photo album and all its photos?'), - '$extra_inputs' => $extra_inputs, + '$extra_inputs' => [], '$confirm' => L10n::t('Delete Album'), '$confirm_url' => $drop_url, '$confirm_name' => 'dropalbum',