Ver Fonte

Fix overlooked default parameter value

pdontthink há 5 anos atrás
pai
commit
40f716e136
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      functions/strings.php

+ 1 - 1
functions/strings.php

@@ -661,7 +661,7 @@ function OneTimePadCreate ($length=100) {
   * @since 1.0
   * @since 1.0
   *
   *
   */
   */
-function show_readable_size($bytes, $filesize_divisor) {
+function show_readable_size($bytes, $filesize_divisor=1024) {
     $bytes /= $filesize_divisor;
     $bytes /= $filesize_divisor;
     $type = _("KiB");
     $type = _("KiB");