Merge remote-tracking branch 'origin/ticket/r13756-slider'
This commit is contained in:
commit
359bbffc7f
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user