]> git.p6c8.net - jirafeau_project.git/commitdiff
fix typo : lenght/length
authorJulien Malik <julien.malik@paraiso.me>
Sun, 22 Mar 2015 21:15:31 +0000 (22:15 +0100)
committerJulien Malik <julien.malik@paraiso.me>
Sun, 22 Mar 2015 21:15:31 +0000 (22:15 +0100)
lib/config.original.php
lib/functions.php
script.php

index 47de3192c4e6c6b5c22610178304f3fe87cee66d..7eaa6c473dfdc417a9beac566f9f472257550f69 100644 (file)
@@ -43,8 +43,8 @@ $cfg['download_page'] = true;
  * By enabling it, file-level deduplication won't work.
  */
 $cfg['enable_crypt'] = false;
-/* Split lenght of link refenrece. */
-$cfg['link_name_lenght'] = 8;
+/* Split length of link refenrece. */
+$cfg['link_name_length'] = 8;
 /* Upload password(s). Empty array disable password authentification.
  * $cfg['upload_password'] = array();               // No password
  * $cfg['upload_password'] = array('psw1');         // One password
index 89c36b015f49c45adf333017c31cae972d7b57fd..25464977b6eed6d2e8a2b4d3b68bafb8bb638fac 100644 (file)
@@ -904,7 +904,7 @@ jirafeau_async_push ($ref, $data, $code, $max_file_size)
   * @param $ref asynchronous upload reference
   * @param $code client code for this operation
   * @param $crypt boolean asking to crypt or not
-  * @param $link_name_length link name lenght
+  * @param $link_name_length link name length
   * @return  a string containing the download reference followed by a delete code or the string "Error"
   */
 function
index c7d847fc53f50a2fdc50dfc25a42a1adbf994dd3..8e4dafcaea494c8467fd9fc239b4a0d1ff3b5848 100644 (file)
@@ -273,7 +273,7 @@ if (isset ($_FILES['file']) && is_writable (VAR_FILES)
     $res = jirafeau_upload ($_FILES['file'],
                             isset ($_POST['one_time_download']),
                             $key, $time, $_SERVER['REMOTE_ADDR'],
-                            $cfg['enable_crypt'], $cfg['link_name_lenght']);
+                            $cfg['enable_crypt'], $cfg['link_name_length']);
     
     if (empty($res) || $res['error']['has_error'])
     {
@@ -587,7 +587,7 @@ elseif (isset ($_GET['end_async']))
         || !isset ($_POST['code']))
         echo "Error";
     else
-        echo jirafeau_async_end ($_POST['ref'], $_POST['code'], $cfg['enable_crypt'], $cfg['link_name_lenght']);
+        echo jirafeau_async_end ($_POST['ref'], $_POST['code'], $cfg['enable_crypt'], $cfg['link_name_length']);
 }
 else
     echo "Error";

patrick-canterino.de