// Install

This commit is contained in:
Damien Metzger
2013-11-18 19:21:56 +01:00
parent 770d48cf3c
commit a3e1fdb690
14 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -597,8 +597,8 @@ class InstallXmlLoader
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));
continue;//return;
$this->setError($this->language->l('Cannot create image "%1$s" for entity "%2$s"', $identifier, $entity));
return;
}
foreach ($types as $type)
-1
View File
@@ -392,4 +392,3 @@ class InstallControllerHttpProcess extends InstallControllerHttp
$this->displayTemplate('process');
}
}
+2 -1
View File
@@ -509,6 +509,7 @@ class InstallModelInstall extends InstallAbstractModel
{
// @todo THIS CODE NEED TO BE REMOVED WHEN MODULES API IS COMMITED
$modules = array(
'blockbanner',
'bankwire',
'blockadvertising',
'blockbestsellers',
@@ -540,8 +541,8 @@ class InstallModelInstall extends InstallAbstractModel
'dashproducts',
'graphnvd3',
'gridhtml',
'homefeatured',
'homeslider',
'homefeatured',
'pagesnotfound',
'sekeywords',
'statsbestcategories',
+1 -1
View File
@@ -46,7 +46,7 @@ class BlockBanner extends Module
public function install()
{
Configuration::updateValue('BLOCKBANNER_IMG', 'store.jpg');
Configuration::updateValue('BLOCKBANNER_IMG', 'sale70.gif');
Configuration::updateValue('BLOCKBANNER_LINK', '');
Configuration::updateValue('BLOCKBANNER_DESC', '');
return parent::install() && $this->registerHook('displayTop') && $this->registerHook('header');

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

+3 -3
View File
@@ -63,8 +63,8 @@ class HomeSlider extends Module
if (parent::install() && $this->registerHook('displayHome') && $this->registerHook('actionShopDataDuplication'))
{
/* Sets up configuration */
$res = Configuration::updateValue('HOMESLIDER_WIDTH', '535');
$res &= Configuration::updateValue('HOMESLIDER_HEIGHT', '300');
$res = Configuration::updateValue('HOMESLIDER_WIDTH', '779');
$res &= Configuration::updateValue('HOMESLIDER_HEIGHT', '448');
$res &= Configuration::updateValue('HOMESLIDER_SPEED', '500');
$res &= Configuration::updateValue('HOMESLIDER_PAUSE', '3000');
$res &= Configuration::updateValue('HOMESLIDER_LOOP', '1');
@@ -86,7 +86,7 @@ class HomeSlider extends Module
private function installSamples()
{
$languages = Language::getLanguages(false);
for ($i = 1; $i <= 5; ++$i)
for ($i = 1; $i <= 3; ++$i)
{
$slide = new HomeSlide();
$slide->position = $i;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB