Uf, change pipe's arguments

This commit is contained in:
bzick 2013-07-24 00:26:39 +04:00
parent fb9b0af3b2
commit a1b6f5765b

View File

@ -602,7 +602,7 @@ class Fenom {
* @param float $chunk * @param float $chunk
* @return array * @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); ob_start($callback, $chunk, true);
$data = $this->getTemplate($template)->display($vars); $data = $this->getTemplate($template)->display($vars);
ob_end_flush(); ob_end_flush();