Skip to content

Commit

Permalink
Merge pull request #3 from Sleuthhound/patch-1
Browse files Browse the repository at this point in the history
Fix display()
  • Loading branch information
bzick committed Feb 18, 2015
2 parents f978d32 + 826f590 commit 02c4738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fenom/StorageTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -154,4 +154,4 @@ public function pipe($template, $callback, array $vars = array(), $chunk = 1e6)
ob_end_flush();
return $data;
}
}
}

0 comments on commit 02c4738

Please sign in to comment.