From 3bfbc05d6de91105c9f1e8e08e2d99aa1fae6274 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Tue, 19 Jun 2012 07:30:30 +0000 Subject: [PATCH] [-] BO : fixed bug #PSCFV-2756 - error in installation 1.5 RC Warning on copy() --- install-dev/models/install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-dev/models/install.php b/install-dev/models/install.php index 321758f36..8da9bebf3 100644 --- a/install-dev/models/install.php +++ b/install-dev/models/install.php @@ -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;