Skip to content

Commit

Permalink
Possible issue with themes fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarl757 authored and josaphatim committed Jun 13, 2024
1 parent 680400e commit d7df56d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/config_gen.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,15 @@ function process_bootswatch_files() {
$target = $src . '/' . $folder . '/css/' . $folder . '.css';
if ($folder == 'default') {
$content = file_get_contents('vendor/twbs/bootstrap/dist/css/bootstrap.min.css');
// Append customization done to the default theme
$custom = file_get_contents($target);
$custom = preg_replace('/^@import.+/m', '', $custom);
$custom = preg_replace('/^@charset.+/m', '', $custom);
$content .= "\n" . $custom;
} else {
$content = file_get_contents('vendor/thomaspark/bootswatch/dist/' . $folder . '/bootstrap.min.css');
}
// Append customization done to the default theme
$custom = file_get_contents($target);
$custom = preg_replace('/^@import.+/m', '', $custom);
$custom = preg_replace('/^@charset.+/m', '', $custom);
$content .= "\n" . $custom;

file_put_contents($target, $content);
}
}
Expand Down

0 comments on commit d7df56d

Please sign in to comment.