// Set to new fixtures

This commit is contained in:
Damien Metzger
2013-11-18 18:51:11 +01:00
parent c78252f64b
commit 36baadad1a
23 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -84,7 +84,7 @@ class InstallXmlLoader
public function setFixturesPath($path = null)
{
if ($path === null)
$path = _PS_INSTALL_FIXTURES_PATH_.'apple/';
$path = _PS_INSTALL_FIXTURES_PATH_.'fashion/';
$this->path_type = 'fixture';
$this->data_path = $path.'data/';
@@ -595,10 +595,10 @@ class InstallXmlLoader
$dst_path = _PS_IMG_DIR_.$p.'/';
$entity_id = $this->retrieveId($entity, $identifier);
if (!copy($from_path.$identifier.'.'.$extension, $dst_path.$entity_id.'.'.$extension))
if (!@copy($from_path.$identifier.'.'.$extension, $dst_path.$entity_id.'.'.$extension))
{
$this->setError($this->language->l('Cannot create image "%1$s" for entity "%2$s"', $identifier, $entity));
return;
//$this->setError($this->language->l('Cannot create image "%1$s" for entity "%2$s"', $identifier, $entity));
continue;//return;
}
foreach ($types as $type)