// Norm & fixed typo

This commit is contained in:
bMancone
2012-02-27 09:35:02 +00:00
parent c5e7c339eb
commit 3fc9f8f29e
2 changed files with 7 additions and 5 deletions
+2
View File
@@ -125,6 +125,8 @@ class HomeSlide extends ObjectModel
$current_slide->update(); $current_slide->update();
unset($current_slide); unset($current_slide);
} }
return true; return true;
} }
} }
+5 -5
View File
@@ -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);