// Fixed typo

This commit is contained in:
Damien Metzger
2013-01-15 13:54:06 +01:00
parent 4bad5fa3b1
commit 710feb595a
2 changed files with 8 additions and 1 deletions
@@ -87,7 +87,7 @@
<img src="../img/admin/import.gif" />{l s='Add / Update a language'}
</legend>
<div id="submitAddLangContent" style="float:left;">
<p>{l s='You can add or update a language directly from the PrestaShop webiste here:'}</p>
<p>{l s='You can add or update a language directly from the PrestaShop website here:'}</p>
<div class="warn">
{l s='If you choose to update an existing language pack, all of your previous customization\'s in the theme named "Default" will be lost. This includes Front Office expressions and default email templates.'}
</div>
@@ -447,6 +447,13 @@ class AdminModulesControllerCore extends AdminController
// Try to upload and unarchive the module
if ($this->tabAccess['add'] === '1')
{
// UPLOAD_ERR_OK: 0
// UPLOAD_ERR_INI_SIZE: 1
// UPLOAD_ERR_FORM_SIZE: 2
// UPLOAD_ERR_NO_TMP_DIR: 6
// UPLOAD_ERR_CANT_WRITE: 7
// UPLOAD_ERR_EXTENSION: 8
// UPLOAD_ERR_PARTIAL: 3
if (!isset($_FILES['file']['tmp_name']) || empty($_FILES['file']['tmp_name']))
$this->errors[] = $this->l('No file has been selected');
elseif (substr($_FILES['file']['name'], -4) != '.tar' && substr($_FILES['file']['name'], -4) != '.zip'