summaryrefslogtreecommitdiff
path: root/core/controllers/quick.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/controllers/quick.php')
-rw-r--r--core/controllers/quick.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/core/controllers/quick.php b/core/controllers/quick.php
index 32febb31..cb43a50f 100644
--- a/core/controllers/quick.php
+++ b/core/controllers/quick.php
@@ -106,20 +106,12 @@ class Quick_Controller extends Controller {
$item = ORM::factory("item", $id);
access::required("edit", $item);
- $parent = $item->parent();
-
if ($item->is_album()) {
$msg = t("Deleted album <b>%title</b>", array("title" => $item->title));
} else {
$msg = t("Deleted photo <b>%title</b>", array("title" => $item->title));
}
- if ($parent->album_cover_item_id == $item->id) {
- // @todo change the album cover to some other random image inside the album
- $parent->album_cover_item_id = null;
- $parent->save();
- }
-
$item->delete();
message::success($msg);