fix typo : lenght/length

This commit is contained in:
Julien Malik 2015-03-22 22:15:31 +01:00
parent 71f70e201e
commit 8b600187ed
3 changed files with 5 additions and 5 deletions

View 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

View 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

View 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";