Photos: Show deletion notify instead of blank page

This commit is contained in:
Ilya Prokopenko 2022-03-27 17:09:24 +03:00
parent 8caecbe362
commit ccf96cb597
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56

View file

@ -276,6 +276,8 @@ final class PhotosPresenter extends OpenVKPresenter
$photo->isolate();
$photo->delete();
exit("Фотография успешно удалена!");
$this->flash("succ", "Фотография удалена", "Эта фотография была успешно удалена.");
$this->redirect("/id0", static::REDIRECT_TEMPORARY);
}
}