mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Uf, change pipe's arguments
This commit is contained in:
parent
fb9b0af3b2
commit
a1b6f5765b
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user