[-] BO : #PSCFV-2661 : Fix translation when use parent::displayError() in modules

This commit is contained in:
lLefevre
2012-06-04 07:22:02 +00:00
parent ba19c164ca
commit 1cdb72b212
@@ -963,7 +963,10 @@ class ThemeInstallator extends Module
if ($this->error === false && class_exists('ZipArchive', false) && ($zip = new ZipArchive()))
{
if (!($zip->open(_EXPORT_FOLDER_.'archive.zip', ZipArchive::OVERWRITE) === true) || !$zip->addEmptyDir('test') === true)
$this->_html .= parent::displayError('Permission denied. Please set permisssion to 666 on this folder: '._EXPORT_FOLDER_);
$this->_html .= parent::displayError(sprintf(
$this->l('Permission denied. Please set permisssion to 666 on this folder: %s'),
EXPORT_FOLDER_
));
$zip->close();
if ($this->error === false)
$this->_html .= parent::displayConfirmation(