aboutsummaryrefslogtreecommitdiff
path: root/actions/photos/album
diff options
context:
space:
mode:
Diffstat (limited to 'actions/photos/album')
-rw-r--r--actions/photos/album/sort.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/actions/photos/album/sort.php b/actions/photos/album/sort.php
index 453f51ac5..fd62a7ba7 100644
--- a/actions/photos/album/sort.php
+++ b/actions/photos/album/sort.php
@@ -12,7 +12,10 @@ if (!$album) {
$guids = get_input('guids');
$guids = explode(',', $guids);
-$album->setImageList($guids);
+if ($album->setImageList($guids)) {
+ system_message(elgg_echo('tidypics:album:sorted', array($album->getTitle())));
+} else {
+ register_error(elgg_echo('tidypics:album:could_not_sort', array($album->getTitle())));
+}
-system_message(elgg_echo('tidypics:album:sorted', array($album->getTitle())));
forward($album->getURL()); \ No newline at end of file