From: Julien Malik Date: Sun, 22 Mar 2015 21:15:31 +0000 (+0100) Subject: fix typo : lenght/length X-Git-Tag: 1.1~135^2~18 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/8b600187edd40b6bc402f1807648426c30de367c fix typo : lenght/length --- diff --git a/lib/config.original.php b/lib/config.original.php index 47de319..7eaa6c4 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -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 diff --git a/lib/functions.php b/lib/functions.php index 89c36b0..2546497 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -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 diff --git a/script.php b/script.php index c7d847f..8e4dafc 100644 --- a/script.php +++ b/script.php @@ -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";