Compare commits

..

1 Commits

Author SHA1 Message Date
88d7d2c777
generated unique slug should be part of diff
All checks were successful
soko-web/pipeline/pr-master This commit looks good
2023-05-27 21:27:19 +02:00

View File

@ -97,13 +97,8 @@ 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, $extra[1]);
fclose($inputFileHandle);