Skip to content

Commit

Permalink
EZP-28871: Return value of BinaryBaseFieldType::getMaxUploadSize shou…
Browse files Browse the repository at this point in the history
…ld be cached (ezsystems#220)
  • Loading branch information
adamwojs authored and andrerom committed Mar 13, 2018
1 parent 511497e commit 14da15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Form/Type/FieldType/BinaryBaseFieldType.php
Expand Up @@ -58,7 +58,7 @@ private function getMaxUploadSize()
{
static $value = null;
if ($value === null) {
return $this->str2bytes(ini_get('upload_max_filesize'));
$value = $this->str2bytes(ini_get('upload_max_filesize'));
}

return $value;
Expand Down

0 comments on commit 14da15a

Please sign in to comment.