]> git.p6c8.net - jirafeau_project.git/blobdiff - lib/functions.php
[TASK] re-arrange Docker overlays to speedup image creation
[jirafeau_project.git] / lib / functions.php
index cfc7dce8250f58c1debeec5e23477d97dca71c74..1e084fbe33d9064f7153fc366af43a66831910d8 100644 (file)
@@ -190,6 +190,9 @@ function jirafeau_ini_to_bytes($value)
     $modifier = substr($value, -1);
     $bytes = substr($value, 0, -1);
     switch (strtoupper($modifier)) {
+    default:
+        return intval($value);
+        break;
     case 'P':
         $bytes *= 1024;
         // no break
@@ -243,7 +246,6 @@ function jirafeau_get_max_upload_chunk_size_bytes($max_upload_chunk_size_bytes =
         }
         return $size;
     }
-
     $size = min(
         jirafeau_get_max_upload_size_bytes(),
         $max_upload_chunk_size_bytes

patrick-canterino.de