// typo debug
This commit is contained in:
1 parent
6aad506c80
commit
598469e41e
2 files changed
+4
-4
No files matched your search
@@ -519,7 +519,7 @@ class LanguageCore extends ObjectModel
|
|||||||
'-default-'.ImageType::getFormatedName('medium').'.jpg',
|
'-default-'.ImageType::getFormatedName('medium').'.jpg',
|
||||||
'-default-'.ImageType::getFormatedName('small').'.jpg'
|
'-default-'.ImageType::getFormatedName('small').'.jpg'
|
||||||
);
|
);
|
||||||
$image_directories = array(_PS_CAT_IMG_DIR_, _PS_MANU_IMG_DIR_, _PS_PROD_IMG_DIR_, _PS_SUPP_IMG_DIR_);
|
$images_directories = array(_PS_CAT_IMG_DIR_, _PS_MANU_IMG_DIR_, _PS_PROD_IMG_DIR_, _PS_SUPP_IMG_DIR_);
|
||||||
foreach ($images_directories as $image_directory)
|
foreach ($images_directories as $image_directory)
|
||||||
foreach ($images as $image)
|
foreach ($images as $image)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -104,7 +104,8 @@ class AdminLanguagesControllerCore extends AdminController
|
|||||||
$this->addRowAction('delete');
|
$this->addRowAction('delete');
|
||||||
|
|
||||||
$this->displayWarning($this->l('When you delete a language, all related translations in the database will be deleted.'));
|
$this->displayWarning($this->l('When you delete a language, all related translations in the database will be deleted.'));
|
||||||
$this->displayInformation($this->l('Your .htaccess file must be writable.'));
|
if (!is_writable(_PS_ROOT_DIR_.'/.htaccess') && Configuration::get('PS_REWRITING_SETTINGS'))
|
||||||
|
$this->displayInformation($this->l('Your .htaccess file must be writable.'));
|
||||||
return parent::renderList();
|
return parent::renderList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -374,12 +375,11 @@ class AdminLanguagesControllerCore extends AdminController
|
|||||||
if ($_FILES['no-picture']['error'] == UPLOAD_ERR_OK)
|
if ($_FILES['no-picture']['error'] == UPLOAD_ERR_OK)
|
||||||
$this->copyNoPictureImage(strtolower(Tools::getValue('iso_code')));
|
$this->copyNoPictureImage(strtolower(Tools::getValue('iso_code')));
|
||||||
unset($_FILES['no-picture']);
|
unset($_FILES['no-picture']);
|
||||||
return parent::processAdd();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->errors[] = Tools::displayError('Flag and "No picture" image fields are required.');
|
$this->errors[] = Tools::displayError('Flag and "No picture" image fields are required.');
|
||||||
|
|
||||||
return false;
|
return parent::processAdd();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function processUpdate()
|
public function processUpdate()
|
||||||
|
|||||||
Reference in new issue
Block a user