Use DS constant.

This commit is contained in:
Taylor Otwell 2013-01-05 13:50:35 -06:00
parent c74118decb
commit 6c3c297c5c
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ public static function exception($exception, $trace = true)
// For Laravel view errors we want to show a prettier error: // For Laravel view errors we want to show a prettier error:
$file = $exception->getFile(); $file = $exception->getFile();
if (str_contains($exception->getFile(), 'eval()') and str_contains($exception->getFile(), 'laravel/view.php')) if (str_contains($exception->getFile(), 'eval()') and str_contains($exception->getFile(), 'laravel'.DS.'view.php'))
{ {
$message = 'Error rendering view: ['.View::$last['name'].']'.PHP_EOL.PHP_EOL.$message; $message = 'Error rendering view: ['.View::$last['name'].']'.PHP_EOL.PHP_EOL.$message;