1
0

fixed a couple of bugs in aws_s3 v2

This commit is contained in:
danneh3826 2011-01-22 22:24:37 +00:00
parent 638779a6f8
commit aa06529a80

View File

@ -67,19 +67,12 @@ class aws_s3_Core {
static function get_upload_flags() { static function get_upload_flags() {
$flags = 0; $flags = 0;
if (module::get_var("aws_s3", "upload_thumbs") == 1) { if (module::get_var("aws_s3", "upload_thumbs") == 1)
aws_s3::log("can upload thumbs");
$flags += self::UPLOAD_THUMB; $flags += self::UPLOAD_THUMB;
} if (module::get_var("aws_s3", "upload_resizes") == 1)
if (module::get_var("aws_s3", "upload_resizes") == 1) {
aws_s3::log("can upload resizes");
$flags += self::UPLOAD_RESIZE; $flags += self::UPLOAD_RESIZE;
} if (module::get_var("aws_s3", "upload_fullsizes") == 1)
if (module::get_var("aws_s3", "upload_fullsizes") == 1) {
aws_s3::log("can upload full sizes");
$flags += self::UPLOAD_FULLSIZE; $flags += self::UPLOAD_FULLSIZE;
}
aws_s3::log("flags: " . $flags);
return $flags; return $flags;
} }