From ee733ee32b08e062ab868a3b26c3cbe73852a28e Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Thu, 4 Jun 2009 11:38:54 +0000 Subject: 1. only supporting Elgg 1.5 and greater now - river code 2. fixed a bug with river code and adding single images to activity --- actions/upload.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'actions/upload.php') 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); -- cgit v1.2.3