Skip to content

Commit

Permalink
Merge branch 'test' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickakk committed Oct 30, 2024
2 parents cf406f3 + 92cbba3 commit 0cdf27e
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ upgrade

# Files which should be generated on deployment
webroot/js/idp_select/DiscoFeed\.json
webroot/search_list.json
webroot/sitemap.xml

# DB schema dump
/config/Migrations/schema-dump-default.lock
13 changes: 13 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@
- Required PHP version 8.3 or later, since version 8.2 active support ends on 2024-12-31


## Version 2024-09/3
*Release date: 2024-10-30*

### Bug fix
- Fix: Required file missing - sitemap.xml #110

## Version 2024-09/2
*Release date: 2024-10-22*

### Bug fix
- Fix: Required file missing - search_list.json #110


## Version 2024-09
*Release date: 2024-10-05*

Expand Down
4 changes: 4 additions & 0 deletions cronjob-output/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
2 changes: 1 addition & 1 deletion src/Command/GenSearchListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function execute(Arguments $args, ConsoleIo $io)
. ' - ' . trim($course->course_type->name);
}

$file = fopen('webroot/search_list.json', 'w');
$file = fopen('cronjob-output/search_list.json', 'w');
fwrite($file, json_encode($searchList));
fclose($file);

Expand Down
2 changes: 1 addition & 1 deletion src/Command/GenSitemapCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function execute(Arguments $args, ConsoleIo $io)
);

// add header
$file = fopen('webroot/sitemap.xml', 'w');
$file = fopen('cronjob-output/sitemap.xml', 'w');
fwrite($file, "<?xml version='1.0' encoding='UTF-8'?>\n\n");
fwrite($file, '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n");

Expand Down
1 change: 1 addition & 0 deletions webroot/search_list.json
1 change: 1 addition & 0 deletions webroot/sitemap.xml

0 comments on commit 0cdf27e

Please sign in to comment.