aboutsummaryrefslogtreecommitdiff
path: root/actions/upload.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-07-31 19:22:47 +0000
committerCash Costello <cash.costello@gmail.com>2010-07-31 19:22:47 +0000
commita1f08342c8b8502197159a9fd78e48e6cead4ea0 (patch)
treeea2e0c175ea7a9f4495b185162585e8d84bb8ed2 /actions/upload.php
parent28e545574f35f0d6349a395648a7857ee58989c9 (diff)
downloadelgg-a1f08342c8b8502197159a9fd78e48e6cead4ea0.tar.gz
elgg-a1f08342c8b8502197159a9fd78e48e6cead4ea0.tar.bz2
improved the upgrade system and moved albums to use an ordered list for images
Diffstat (limited to 'actions/upload.php')
-rw-r--r--actions/upload.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/actions/upload.php b/actions/upload.php
index b1eb4efe1..88b000706 100644
--- a/actions/upload.php
+++ b/actions/upload.php
@@ -244,6 +244,10 @@ if (count($uploaded_images) && $img_river_view == "1") {
// update image repo size
create_metadata($album->container_guid, "image_repo_size", $image_repo_size, 'integer', $album->container_guid);
+if (count($uploaded_images) > 0) {
+ $album->prependImageList($uploaded_images);
+}
+
// plugins can register to be told when a Tidypics album has had images added
trigger_elgg_event('upload', 'tp_album', $album);