From 8b600187edd40b6bc402f1807648426c30de367c Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Sun, 22 Mar 2015 22:15:31 +0100 Subject: [PATCH] fix typo : lenght/length --- lib/config.original.php | 4 ++-- lib/functions.php | 2 +- script.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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"; -- 2.34.1