Compare commits
1 Commits
346b1a0ca9
...
88d7d2c777
Author | SHA1 | Date | |
---|---|---|---|
88d7d2c777 |
@ -97,12 +97,7 @@ class Linker
|
|||||||
|
|
||||||
fwrite($outputFileHandle, $extra[0]);
|
fwrite($outputFileHandle, $extra[0]);
|
||||||
while (($line = fgets($inputFileHandle)) !== false) {
|
while (($line = fgets($inputFileHandle)) !== false) {
|
||||||
if (preg_match('/^\s*@include\((.*)\)\s*$/', $line, $matches) === 1) {
|
fwrite($outputFileHandle, $line);
|
||||||
$include = file_get_contents(ROOT . '/views/' . $matches[1] . '.php');
|
|
||||||
fwrite($outputFileHandle, $include);
|
|
||||||
} else {
|
|
||||||
fwrite($outputFileHandle, $line);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
fwrite($outputFileHandle, $extra[1]);
|
fwrite($outputFileHandle, $extra[1]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user