From ccf96cb597659db0de9e0a6ef2067261dc2aec6d Mon Sep 17 00:00:00 2001 From: Ilya Prokopenko Date: Sun, 27 Mar 2022 17:09:24 +0300 Subject: [PATCH] Photos: Show deletion notify instead of blank page --- Web/Presenters/PhotosPresenter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Web/Presenters/PhotosPresenter.php b/Web/Presenters/PhotosPresenter.php index b79b7547..01093be7 100644 --- a/Web/Presenters/PhotosPresenter.php +++ b/Web/Presenters/PhotosPresenter.php @@ -276,6 +276,8 @@ final class PhotosPresenter extends OpenVKPresenter $photo->isolate(); $photo->delete(); - exit("Фотография успешно удалена!"); + + $this->flash("succ", "Фотография удалена", "Эта фотография была успешно удалена."); + $this->redirect("/id0", static::REDIRECT_TEMPORARY); } }