Skip to content

Commit

Permalink
Merge pull request #913 from jacob-js/fix-config-gen
Browse files Browse the repository at this point in the history
[REF] use VENDOR_PATH constant for referencing files within the vendor folder for the config_gen.php script
  • Loading branch information
kroky authored Feb 21, 2024
2 parents 700204e + 8cab96d commit d30b645
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/config_gen.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,16 @@ function combine_includes($js, $js_compress, $css, $css_compress, $settings) {
$js_hash = '';
$css_hash = '';
if ($css) {
$css_out = file_get_contents("vendor/twbs/bootstrap/dist/css/bootstrap.min.css");
$css_out .= file_get_contents("vendor/twbs/bootstrap-icons/font/bootstrap-icons.css");
$css_out = file_get_contents(VENDOR_PATH . "twbs/bootstrap/dist/css/bootstrap.min.css");
$css_out .= file_get_contents(VENDOR_PATH . "twbs/bootstrap-icons/font/bootstrap-icons.css");
$css_out .= compress($css, $css_compress);
$css_hash = build_integrity_hash($css_out);
file_put_contents('site.css', $css_out);
printf("site.css file created\n");
}
if ($js) {
$mods = get_modules($settings);
$js_lib = file_get_contents("vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js");
$js_lib = file_get_contents(VENDOR_PATH . "twbs/bootstrap/dist/js/bootstrap.bundle.min.js");
$js_lib .= file_get_contents("third_party/cash.min.js");
if (in_array('desktop_notifications', $mods, true)) {
$js_lib .= file_get_contents("third_party/push.min.js");
Expand Down

0 comments on commit d30b645

Please sign in to comment.