From aa06529a80eff788c058531ab93e3cec47685945 Mon Sep 17 00:00:00 2001 From: danneh3826 Date: Sat, 22 Jan 2011 22:24:37 +0000 Subject: [PATCH] fixed a couple of bugs in aws_s3 v2 --- 3.0/modules/aws_s3/helpers/aws_s3.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/3.0/modules/aws_s3/helpers/aws_s3.php b/3.0/modules/aws_s3/helpers/aws_s3.php index f8b5b1dd..eafdaf62 100644 --- a/3.0/modules/aws_s3/helpers/aws_s3.php +++ b/3.0/modules/aws_s3/helpers/aws_s3.php @@ -67,19 +67,12 @@ class aws_s3_Core { static function get_upload_flags() { $flags = 0; - if (module::get_var("aws_s3", "upload_thumbs") == 1) { - aws_s3::log("can upload thumbs"); + if (module::get_var("aws_s3", "upload_thumbs") == 1) $flags += self::UPLOAD_THUMB; - } - if (module::get_var("aws_s3", "upload_resizes") == 1) { - aws_s3::log("can upload resizes"); + if (module::get_var("aws_s3", "upload_resizes") == 1) $flags += self::UPLOAD_RESIZE; - } - if (module::get_var("aws_s3", "upload_fullsizes") == 1) { - aws_s3::log("can upload full sizes"); + if (module::get_var("aws_s3", "upload_fullsizes") == 1) $flags += self::UPLOAD_FULLSIZE; - } - aws_s3::log("flags: " . $flags); return $flags; }