Skip to content

Commit

Permalink
Merge pull request #63 from Jacobomara901/merge_javascript_relative_fix
Browse files Browse the repository at this point in the history
Merge javascript relative fix
  • Loading branch information
AlexanderBlanchardAC authored Jun 5, 2024
2 parents 0778aa2 + c807a4b commit d6f4c51
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
10 changes: 5 additions & 5 deletions code/web/interface/themes/responsive/js/merge_javascript.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php
header('Content-type: text/plain');
date_default_timezone_set('America/Denver');
$mergeListFile = fopen("./javascript_files.txt", 'r');
$mergedFile = fopen("./aspen.js", 'w');
$mergeListFile = fopen(__DIR__ . "/javascript_files.txt", 'r');
$mergedFile = fopen(__DIR__ . "/aspen.js", 'w');
while (($fileToMerge = fgets($mergeListFile)) !== false){
$fileToMerge = trim($fileToMerge);
if (strpos($fileToMerge, '#') !== 0){
if (file_exists($fileToMerge)){
fwrite($mergedFile, file_get_contents($fileToMerge, true));
if (file_exists(__DIR__ . '/' . $fileToMerge)){
fwrite($mergedFile, file_get_contents(__DIR__ . '/' . $fileToMerge, true));
fwrite($mergedFile, "\r\n");
}else{
echo("$fileToMerge does not exist\r\n");
echo("$fileToMerge does not exist\r\n");
}
}
}
Expand Down
9 changes: 8 additions & 1 deletion code/web/release_notes/24.06.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,17 @@
- Added new Documentation links to several settings pages (*MKD*)
- Updates to default user roles: removed testing roles and a couple uncommonly used roles; updated role titles (*MKD*)

//Jacob - PTFS
### Other Updates
- Updated the merge_javascript.php script to be relative to the location of the file, not the location the script was ran from (*JOM*)

## This release includes code contributions from
- ByWater Solutions
- Mark Noble (MDN)
- Kirstin Kroeger (KK)
- Kodi Lein (KL)
- Liz Rea (LR)
- Morgan Daigneault (MKD)
- Morgan Daigneault (MKD)

- PTFS-Europe
- Jacob O'Mara (JOM)

0 comments on commit d6f4c51

Please sign in to comment.