aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-01 21:35:51 +0200
committerSem <sembrestels@riseup.net>2012-08-01 21:35:51 +0200
commit5c4f586fe21c6de249c239212d3e6e81ff47bcb9 (patch)
tree8ac3b9f4b8b9c4aa8f894b43f72623e6df6cd260
parentf9e9c6cb5950ccf1d1d5396caa9dbb2803aacdad (diff)
downloadelgg-5c4f586fe21c6de249c239212d3e6e81ff47bcb9.tar.gz
elgg-5c4f586fe21c6de249c239212d3e6e81ff47bcb9.tar.bz2
Added default title to images.
-rw-r--r--actions/photos/image/upload.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/actions/photos/image/upload.php b/actions/photos/image/upload.php
index cb0a2f90d..2dd0959bf 100644
--- a/actions/photos/image/upload.php
+++ b/actions/photos/image/upload.php
@@ -53,6 +53,7 @@ foreach ($_FILES['images']['name'] as $index => $value) {
$mime = tp_upload_get_mimetype($data['name']);
$image = new TidypicsImage();
+ $image->title = $data['name'];
$image->container_guid = $album->getGUID();
$image->setMimeType($mime);
$image->access_id = $album->access_id;