Includes use render to prevent WSOD

This commit is contained in:
Jason Lewis 2012-04-03 19:57:01 +10:00
parent ff484b7203
commit 3d23303aea
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ protected static function compile_includes($value)
{
$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);
}
/**