Merge remote-tracking branch 'origin/ticket/r13756-slider' into dev

This commit is contained in:
Michael RICOIS 2017-09-07 14:45:03 +02:00
commit 59c27258cd

View File

@ -140,7 +140,9 @@ class AdvSlider extends Module
public function hookDisplaySlider($params)
{
if (!$this->isCached('advslider.tpl', $this->getCacheId())) {
$cacheEnabled = false;
if (!$cacheEnabled || !$this->isCached('advslider.tpl', $this->getCacheId())) {
$slides = AdvSlide::getSlides();
if (!$slides) {
@ -148,8 +150,10 @@ class AdvSlider extends Module
}
$this->smarty->assign('slides', $slides);
return $this->display(__FILE__, 'advslider.tpl');
}
return $this->display(__FILE__, 'advslider.tpl', $this->getCacheId());
}