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:
Bharat Mediratta
2009-07-11 07:45:41 -07:00
parent cbd80b5ff9
commit e2967aa1c1

View File

@@ -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);