Merge pull request #487 from jasonlewis/patch-8
Includes use render to prevent WSOD
This commit is contained in:
commit
e29270f6a7
|
@ -264,7 +264,7 @@ protected static function compile_includes($value)
|
||||||
{
|
{
|
||||||
$pattern = static::matcher('include');
|
$pattern = static::matcher('include');
|
||||||
|
|
||||||
return preg_replace($pattern, '$1<?php echo view$2->with(get_defined_vars()); ?>', $value);
|
return preg_replace($pattern, '$1<?php echo view$2->with(get_defined_vars())->render(); ?>', $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue