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; }