aboutsummaryrefslogtreecommitdiff
path: root/actions/upload.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-04 11:38:54 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-04 11:38:54 +0000
commitee733ee32b08e062ab868a3b26c3cbe73852a28e (patch)
tree5080cb476b1ed07ee5ec15f2e2480c8a3fd5ae80 /actions/upload.php
parent1447a6c7d8c821e2ad34145ade26376a5c9b2a03 (diff)
downloadelgg-ee733ee32b08e062ab868a3b26c3cbe73852a28e.tar.gz
elgg-ee733ee32b08e062ab868a3b26c3cbe73852a28e.tar.bz2
1. only supporting Elgg 1.5 and greater now - river code
2. fixed a bug with river code and adding single images to activity
Diffstat (limited to 'actions/upload.php')
-rw-r--r--actions/upload.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/actions/upload.php b/actions/upload.php
index 6a941fa66..11290a1d8 100644
--- a/actions/upload.php
+++ b/actions/upload.php
@@ -6,9 +6,9 @@
*/
global $CONFIG;
- include_once dirname(dirname(__FILE__)) . "/lib/resize.php";
- include_once dirname(dirname(__FILE__)) . "/lib/watermark.php";
- include_once dirname(dirname(__FILE__)) . "/lib/exif.php";
+ include dirname(dirname(__FILE__)) . "/lib/resize.php";
+ include dirname(dirname(__FILE__)) . "/lib/watermark.php";
+ include dirname(dirname(__FILE__)) . "/lib/exif.php";
// Get common variables
$access_id = (int) get_input("access_id");
@@ -158,13 +158,13 @@
tp_watermark($thumbs);
- //keep one file handy so we can add a notice to the river
- if(!$file_for_river) {
- $file_for_river = $file;
- }
-
} // end of image library selector
+ //keep one file handy so we can add a notice to the river if single image option selected
+ if(!$file_for_river) {
+ $file_for_river = $file;
+ }
+
//get and store the exif data
td_get_exif($file);
array_push($uploaded_images, $file->guid);