Upload_Validator fixing getAllowedMaxFileSize to correctly return * value

This commit is contained in:
Tim Kung 2016-03-24 16:00:08 +13:00 committed by Damian Mooyman
parent 0bc5fb31c1
commit d1c7554c1e

View File

@ -416,11 +416,9 @@ class Upload_Validator {
if ($category && isset($this->allowedMaxFileSize['[' . $category . ']'])) {
return $this->allowedMaxFileSize['[' . $category . ']'];
}
return false;
} else {
return (isset($this->allowedMaxFileSize['*'])) ? $this->allowedMaxFileSize['*'] : false;
}
return (isset($this->allowedMaxFileSize['*'])) ? $this->allowedMaxFileSize['*'] : false;
}
/**