Skip to content

Commit

Permalink
Merge pull request laravel#487 from jasonlewis/patch-8
Browse files Browse the repository at this point in the history
Includes use render to prevent WSOD
  • Loading branch information
taylorotwell committed Apr 3, 2012
2 parents 9f1bd0c + 3d23303 commit e29270f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion laravel/blade.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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);
} }


/** /**
Expand Down

0 comments on commit e29270f

Please sign in to comment.