sort.php 480 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Sorting album action - takes a comma separated list of image guids
  4. */
  5. $album_guid = get_input('album_guid');
  6. $album = get_entity($album_guid);
  7. if (!$album) {
  8. }
  9. $guids = get_input('guids');
  10. $guids = explode(',', $guids);
  11. if ($album->setImageList($guids)) {
  12. system_message(elgg_echo('tidypics:album:sorted', array($album->getTitle())));
  13. } else {
  14. register_error(elgg_echo('tidypics:album:could_not_sort', array($album->getTitle())));
  15. }
  16. forward($album->getURL());