Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Mar 8, 2016
2 parents 74ffe5d + 264ae8a commit d785ffd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ website/
couscous-theme/
.couscous/
couscous.yml


2 changes: 1 addition & 1 deletion src/Blocks/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function close()
}
$args = $this->args;
$this->opened--;
$this->args = [];
$this->opened === 0 and $this->args = [];
array_unshift($args, ob_get_clean());
$block = call_user_func_array($this->callback, $args);

Expand Down
3 changes: 1 addition & 2 deletions src/Section/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ public function replace()
$this->mode = self::MODE_REPLACE;
}
$buffer = ob_get_clean();
$this->content or $this->content = $buffer;
$this->content = ($this->mode & self::MODE_APPEND) ? $buffer.$this->content : $this->content;
$this->content = ($this->mode & self::MODE_APPEND) ? $buffer.$this->content : $buffer;
if ($this->mode & self::MODE_OUTPUT) {
echo $this->content();
}
Expand Down

0 comments on commit d785ffd

Please sign in to comment.