]> git.p6c8.net - jirafeau_mojo42.git/blobdiff - lib/functions.php
Translated using Weblate (Belarusian)
[jirafeau_mojo42.git] / lib / functions.php
index 8af38010d0c6fa0c40e43b29d6983f988c07d7ad..01d0638d2db57e4a587959375aaa98530ab0c7e5 100644 (file)
@@ -204,7 +204,7 @@ function jirafeau_ini_to_bytes($value)
 function jirafeau_get_max_upload_size_bytes()
 {
     return min(jirafeau_ini_to_bytes(ini_get('post_max_size')),
-                jirafeau_ini_to_bytes(ini_get('upload_max_filesize')));
+               jirafeau_ini_to_bytes(ini_get('upload_max_filesize')));
 }
 
 /**
@@ -213,9 +213,7 @@ function jirafeau_get_max_upload_size_bytes()
  */
 function jirafeau_get_max_upload_size()
 {
-    return jirafeau_human_size(
-            min(jirafeau_ini_to_bytes(ini_get('post_max_size')),
-                 jirafeau_ini_to_bytes(ini_get('upload_max_filesize'))));
+    return jirafeau_human_size(jirafeau_get_max_upload_size_bytes());
 }
 
 /**

patrick-canterino.de