mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #2386 layout not visible if only layout.blade.php exists
This commit is contained in:
parent
2b23bc522d
commit
5ed8ef5ef1
1 changed files with 12 additions and 1 deletions
|
|
@ -249,7 +249,18 @@ class LayoutModel extends Layout
|
|||
$path = $pathPrefix . $layout;
|
||||
}
|
||||
|
||||
return is_readable($path . '/layout.html');
|
||||
if (file_exists($path . '/layout.html') && is_readable($path . '/layout.html'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
elseif (file_exists($path . '/layout.blade.php') && is_readable($path . '/layout.blade.php'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue