From 0aa823656bf92ae472cb6780afb24f5a0390b880 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 23 Nov 2011 16:50:04 -0500 Subject: added editing of images --- actions/photos/image/save.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 actions/photos/image/save.php (limited to 'actions/photos') diff --git a/actions/photos/image/save.php b/actions/photos/image/save.php new file mode 100644 index 000000000..535ae8bbb --- /dev/null +++ b/actions/photos/image/save.php @@ -0,0 +1,40 @@ +access_id = $access_id; +$image->title = $title; +$image->description = $description; +if ($tags) { + $image->tags = string_to_tag_array($tags); +} + +if (!$image->save()) { + register_error(elgg_echo("image:error")); + forward(REFERER); +} + +elgg_clear_sticky_form('tidypics'); + +system_message(elgg_echo("image:saved")); +forward($image->getURL()); -- cgit v1.2.3