mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-02 19:19:17 -04:00
Fix a problem in delete() where we were referencing $parent without
saving its value before $item got deleted. Further fix for #528.
This commit is contained in:
@@ -127,6 +127,7 @@ class Quick_Controller extends Controller {
|
||||
$msg = t("Deleted photo <b>%title</b>", array("title" => p::purify($item->title)));
|
||||
}
|
||||
|
||||
$parent = $item->parent();
|
||||
$item->delete();
|
||||
message::success($msg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user