Skip to content

Commit fda975c

Browse files
authored
Merge pull request #52 from mevdschee/master
add ui.include.php
2 parents 7f0696a + 86163f9 commit fda975c

File tree

2 files changed

+14459
-0
lines changed

2 files changed

+14459
-0
lines changed

build.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ function run(string $base, array $dirs, string $filename, array $ignore)
118118
include 'tmp_' . $filename;
119119
ob_end_clean();
120120
rename('tmp_' . $filename, $filename);
121+
$data = substr($data, 0, strrpos($data, "\n// file: webroot/index.php"));
122+
file_put_contents(str_replace('.php', '.include.php', $filename), $data);
121123
$end = microtime(true);
122124
$time = ($end - $start) * 1000;
123125
echo sprintf("%d files combined in %d ms into '%s'\n", $count, $time, $filename);

0 commit comments

Comments
 (0)