[-] BO : fixed bug #PSCFV-2756 - error in installation 1.5 RC Warning on copy()

This commit is contained in:
vAugagneur
2012-06-19 07:30:30 +00:00
parent 18fc1a79e9
commit 3bfbc05d6d
+2 -1
View File
@@ -319,7 +319,8 @@ class InstallModelInstall extends InstallAbstractModel
// Copy language flag
if (is_writable(_PS_IMG_DIR_.'l/'))
copy(_PS_INSTALL_LANGS_PATH_.$iso.'/flag.jpg', _PS_IMG_DIR_.'l/'.$language->id.'.jpg');
if (!copy(_PS_INSTALL_LANGS_PATH_.$iso.'/flag.jpg', _PS_IMG_DIR_.'l/'.$language->id.'.jpg'))
throw new PrestashopInstallerException($this->language->l('Cannot copy flag language "%s"', _PS_INSTALL_LANGS_PATH_.$iso.'/flag.jpg => '._PS_IMG_DIR_.'l/'.$language->id.'.jpg'));
}
return $languages;