cleaning up code.
This commit is contained in:
parent
353c7c527f
commit
ca40180b54
|
@ -95,8 +95,7 @@ protected function path($view)
|
||||||
|
|
||||||
// Views may have the normal PHP extension or the Blade PHP extension, so
|
// Views may have the normal PHP extension or the Blade PHP extension, so
|
||||||
// we need to check if either of them exist in the base views directory
|
// we need to check if either of them exist in the base views directory
|
||||||
// for the bundle. We'll check for the PHP extension first since that
|
// for the bundle and return the first one we find.
|
||||||
// is probably the more common of the two.
|
|
||||||
foreach (array(EXT, BLADE_EXT) as $extension)
|
foreach (array(EXT, BLADE_EXT) as $extension)
|
||||||
{
|
{
|
||||||
if (file_exists($path = $root.Bundle::element($view).$extension))
|
if (file_exists($path = $root.Bundle::element($view).$extension))
|
||||||
|
|
Loading…
Reference in New Issue