mirror of
https://github.com/processwire/processwire.git
synced 2025-08-16 03:34:33 +02:00
Attempt fix for processwire/processwire-issues#1467 maxFilesize PHP 8.2 notice per @matjazpotocnik
This commit is contained in:
@@ -213,7 +213,7 @@ class InputfieldFile extends Inputfield implements InputfieldItemList, Inputfiel
|
|||||||
$max = $this->strToBytes($filesize);
|
$max = $this->strToBytes($filesize);
|
||||||
$phpMax = $this->strToBytes(ini_get('upload_max_filesize'));
|
$phpMax = $this->strToBytes(ini_get('upload_max_filesize'));
|
||||||
if($phpMax < $max) $max = $phpMax;
|
if($phpMax < $max) $max = $phpMax;
|
||||||
$this->maxFilesize = $max;
|
parent::set('maxFilesize', $max);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user