From 826f5905f4a2f63e69099b84910662c734c50606 Mon Sep 17 00:00:00 2001 From: Anton Popov Date: Wed, 18 Feb 2015 08:40:31 +0500 Subject: [PATCH] Fix display() --- src/Fenom/StorageTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fenom/StorageTrait.php b/src/Fenom/StorageTrait.php index f917476..729b9e9 100644 --- a/src/Fenom/StorageTrait.php +++ b/src/Fenom/StorageTrait.php @@ -121,7 +121,7 @@ public function resetVars() public function display($template, array $vars = array()) { /* @var \Fenom|StorageTrait $this */ - return $this->_vars = $this->getTemplate($template)->display($template, $vars ? $vars + $this->_vars : $this->_vars); + return $this->_vars = $this->getTemplate($template)->display($vars ? $vars + $this->_vars : $this->_vars); } /** @@ -154,4 +154,4 @@ public function pipe($template, $callback, array $vars = array(), $chunk = 1e6) ob_end_flush(); return $data; } -} \ No newline at end of file +}