From a1b6f5765bd99a3eaf36cfc46756b8cd89c05de9 Mon Sep 17 00:00:00 2001 From: bzick Date: Wed, 24 Jul 2013 00:26:39 +0400 Subject: [PATCH] Uf, change pipe's arguments --- src/Fenom.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fenom.php b/src/Fenom.php index 9a04cdf..f5faffe 100644 --- a/src/Fenom.php +++ b/src/Fenom.php @@ -602,7 +602,7 @@ class Fenom { * @param float $chunk * @return array */ - public function pipe($template, array $vars, $callback, $chunk = 1e6) { + public function pipe($template, $callback, array $vars = array(), $chunk = 1e6) { ob_start($callback, $chunk, true); $data = $this->getTemplate($template)->display($vars); ob_end_flush();