]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Admin/Item/Delete.php
post/thread views are renamed, search bugs fixed
[friendica.git] / src / Module / Admin / Item / Delete.php
index 028e228d34f63519f318c70d6b1303c24184d97a..1ee91f4250216662f31d7b197fd66b01b9c508b0 100644 (file)
@@ -31,7 +31,7 @@ class Delete extends BaseAdmin
 {
        public static function post(array $parameters = [])
        {
-               parent::post($parameters);
+               self::checkAdminAccess();
 
                if (empty($_POST['page_deleteitem_submit'])) {
                        return;
@@ -51,7 +51,7 @@ class Delete extends BaseAdmin
                        Item::markForDeletion(['guid' => $guid]);
                }
 
-               info(DI::l10n()->t('Item marked for deletion.') . EOL);
+               info(DI::l10n()->t('Item marked for deletion.'));
                DI::baseUrl()->redirect('admin/item/delete');
        }
 
@@ -67,7 +67,7 @@ class Delete extends BaseAdmin
                        '$submit' => DI::l10n()->t('Delete this Item'),
                        '$intro1' => DI::l10n()->t('On this page you can delete an item from your node. If the item is a top level posting, the entire thread will be deleted.'),
                        '$intro2' => DI::l10n()->t('You need to know the GUID of the item. You can find it e.g. by looking at the display URL. The last part of http://example.com/display/123456 is the GUID, here 123456.'),
-                       '$deleteitemguid' => ['deleteitemguid', DI::l10n()->t("GUID"), '', DI::l10n()->t("The GUID of the item you want to delete."), 'required', 'autofocus'],
+                       '$deleteitemguid' => ['deleteitemguid', DI::l10n()->t("GUID"), '', DI::l10n()->t("The GUID of the item you want to delete."), DI::l10n()->t('Required'), 'autofocus'],
                        '$form_security_token' => self::getFormSecurityToken("admin_deleteitem")
                ]);
        }