Use DS constant.

This commit is contained in:
Taylor Otwell
2013-01-05 13:50:35 -06:00
parent c74118decb
commit 6c3c297c5c

View File

@@ -20,7 +20,7 @@ class Error {
// For Laravel view errors we want to show a prettier error:
$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;