diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-11 07:45:41 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-11 07:45:41 -0700 |
commit | e2967aa1c1a0232e1a1f162db46e6f6db7154dac (patch) | |
tree | c510704619b98ebdf647010b9e88119170f98b2d /modules | |
parent | cbd80b5ff948e23a1fa8b0994291953d38f6a7bd (diff) |
Fix a problem in delete() where we were referencing $parent without
saving its value before $item got deleted. Further fix for #528.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/controllers/quick.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/controllers/quick.php b/modules/gallery/controllers/quick.php index 53af2ba6..de027c1b 100644 --- a/modules/gallery/controllers/quick.php +++ b/modules/gallery/controllers/quick.php @@ -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); |