diff options
Diffstat (limited to 'actions/photos/album/sort.php')
-rw-r--r-- | actions/photos/album/sort.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/actions/photos/album/sort.php b/actions/photos/album/sort.php index 613747784..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->title))); forward($album->getURL());
\ No newline at end of file |