]> git.p6c8.net - jirafeau_mojo42.git/blobdiff - lib/functions.php
fix wrong location for cfg access
[jirafeau_mojo42.git] / lib / functions.php
index ebfffd41f7040f2be8beda0a0901259523d88026..f2a26e0858857031be5217987895c239463247fe 100644 (file)
@@ -101,10 +101,8 @@ function jirafeau_gen_random($l)
     return $code;
 }
 
-function jirafeau_gen_download_pass()
+function jirafeau_gen_download_pass($length, $allowed_chars)
 {
-    $length = $cfg['download_password_gen_len'];
-    $allowed_chars = $cfg['download_password_gen_chars'];
     if ($length <= 0) {
         return false;
     }

patrick-canterino.de