// Norm & fixed typo
This commit is contained in:
@@ -125,6 +125,8 @@ class HomeSlide extends ObjectModel
|
|||||||
$current_slide->update();
|
$current_slide->update();
|
||||||
unset($current_slide);
|
unset($current_slide);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -517,7 +517,7 @@ class HomeSlider extends Module
|
|||||||
else
|
else
|
||||||
$slide->active = 0;
|
$slide->active = 0;
|
||||||
$res = $slide->update();
|
$res = $slide->update();
|
||||||
$this->_html .= ($res ? $this->displayConfirmation($this->l('Configuration updated')) : $this->displayErro($this->l('Configuration could not be updated')));
|
$this->_html .= ($res ? $this->displayConfirmation($this->l('Configuration updated')) : $this->displayError($this->l('Configuration could not be updated')));
|
||||||
}
|
}
|
||||||
/* Processes Slide */
|
/* Processes Slide */
|
||||||
else if (Tools::isSubmit('submitSlide'))
|
else if (Tools::isSubmit('submitSlide'))
|
||||||
@@ -613,10 +613,10 @@ class HomeSlider extends Module
|
|||||||
public function hookHome()
|
public function hookHome()
|
||||||
{
|
{
|
||||||
$slider = array(
|
$slider = array(
|
||||||
'width' => Configuration::get('HOMESLIDER_WIDTH'),
|
'width' => Configuration::get('HOMESLIDER_WIDTH'),
|
||||||
'height' => Configuration::get('HOMESLIDER_HEIGHT'),
|
'height' => Configuration::get('HOMESLIDER_HEIGHT'),
|
||||||
'speed' => Configuration::get('HOMESLIDER_SPEED'),
|
'speed' => Configuration::get('HOMESLIDER_SPEED'),
|
||||||
'pause' => Configuration::get('HOMESLIDER_PAUSE')
|
'pause' => Configuration::get('HOMESLIDER_PAUSE')
|
||||||
);
|
);
|
||||||
|
|
||||||
$slides = $this->getSlides(true);
|
$slides = $this->getSlides(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user