Skip to content

Commit

Permalink
Fixing the normal file usage without Layout structure
Browse files Browse the repository at this point in the history
  • Loading branch information
abidulrmdn committed Aug 6, 2017
1 parent f509691 commit 92b79ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Console/CompileBlades.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ private function seperateSections(&$blade)

private function replaceLayout(&$blade)
{

//find the extended file
preg_match_all('/@extends[(][\'](.*?)[\'][)]/si', $blade, $output);

if (!empty($output[1])) {
$layout = $output[1][0];
//take out the extend keyword
Expand All @@ -120,8 +120,6 @@ private function replaceLayout(&$blade)
$layout = file_get_contents(view($layout)->getPath());
$blade = $blade . " " . $layout;
}

return $layout;
}

private function replaceSections(&$blade, $sections)
Expand Down

0 comments on commit 92b79ff

Please sign in to comment.