Fixed empty loop wich execute contents problem
This commit is contained in:
@@ -120,8 +120,12 @@ class TheliaLoop extends AbstractSmartyPlugin
|
||||
self::$pagination[$name] = null;
|
||||
|
||||
$loopResults = $loop->exec(self::$pagination[$name]);
|
||||
|
||||
$this->loopstack[$name] = $loopResults;
|
||||
|
||||
// Pas de résultat ? la boucle est terminée, ne pas évaluer le contenu.
|
||||
if ($loopResults->isEmpty()) $repeat = false;
|
||||
|
||||
} else {
|
||||
$loopResults = $this->loopstack[$name];
|
||||
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
.background-clip(padding-box);
|
||||
}
|
||||
|
||||
.background-clip(@argument: padding-box) {
|
||||
-moz-background-clip: @argument;
|
||||
-webkit-background-clip: @argument;
|
||||
background-clip: @argument;
|
||||
}
|
||||
|
||||
.box-shadow(@shadow: 0 1px 2px rgba(0,0,0,.05)) {
|
||||
-webkit-box-shadow: @shadow;
|
||||
|
||||
Reference in New Issue
Block a user