diff --git a/app/controllers/Media.php b/app/controllers/Media.php index fb2a43d..fa6c814 100644 --- a/app/controllers/Media.php +++ b/app/controllers/Media.php @@ -215,7 +215,7 @@ public static function uploadFile($file, string $path): bool */ public static function getMaxUploadFileSize(): mixed { - return min(array_map(fn($key) => \Aurora\System\Helper::getPHPSize(ini_get($key)), [ 'post_max_size', 'upload_max_filesize' ])); + return min(array_map(fn($key) => \Aurora\System\Helper::getPhpSize(ini_get($key)), [ 'post_max_size', 'upload_max_filesize' ])); } /** diff --git a/app/views/admin/settings.php b/app/views/admin/settings.php index 4c789b3..203f837 100755 --- a/app/views/admin/settings.php +++ b/app/views/admin/settings.php @@ -164,7 +164,7 @@
- +
diff --git a/system/Helper.php b/system/Helper.php index cb3228f..ca88a4d 100755 --- a/system/Helper.php +++ b/system/Helper.php @@ -119,7 +119,7 @@ public static function getByteSize(float $bytes): string * @param string $size_str The PHP size string * @return int the size in bytes */ - public static function getPHPSize(string $size_str): int + public static function getPhpSize(string $size_str): int { $size = substr($size_str, 0, -1); switch (strtoupper(substr($size_str, -1))) {