Compare commits
No commits in common. "6fdd25ae4bd5971777fdfafb78b4e42632ddea5f" and "78f891fbff0dc8e5de5607529f4c8282f1dff40f" have entirely different histories.
6fdd25ae4b
...
78f891fbff
@ -97,12 +97,7 @@ class Linker
|
||||
|
||||
fwrite($outputFileHandle, $extra[0]);
|
||||
while (($line = fgets($inputFileHandle)) !== false) {
|
||||
if (preg_match('/^\s*@include\((.*)\)\s*$/', $line, $matches) === 1) {
|
||||
$include = file_get_contents(ROOT . '/views/' . $matches[1] . '.php');
|
||||
fwrite($outputFileHandle, $include);
|
||||
} else {
|
||||
fwrite($outputFileHandle, $line);
|
||||
}
|
||||
fwrite($outputFileHandle, $line);
|
||||
}
|
||||
fwrite($outputFileHandle, $extra[1]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user