Skip to content

Commit

Permalink
fix config generator to ignore fonts when copying bootswatch files
Browse files Browse the repository at this point in the history
  • Loading branch information
kroky committed Apr 30, 2024
1 parent 1604c47 commit ec5bdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/config_gen.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function process_bootswatch_files() {
$dir = opendir($src);
while(false !== ($folder = readdir($dir))) {
if (($folder != '.' ) && ($folder != '..' )) {
if (is_dir($src . '/' . $folder)) {
if (is_dir($src . '/' . $folder) && $folder != 'fonts') {
$target = $src . '/' . $folder . '/css/' . $folder . '.css';
if ($folder == 'default') {
$content = file_get_contents('vendor/twbs/bootstrap/dist/css/bootstrap.min.css');
Expand Down

0 comments on commit ec5bdc1

Please sign in to comment.