Skip to content

Commit 16d0139

Browse files
committed
fix: promo file not updating at runtime
1 parent d20b8c1 commit 16d0139

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
// SHOW PROMO BANNER?
3939
// promo.json example: {"promo_str": "Offerta a tempo limitato!<br>Tutti i corsi in <b>offerta speciale</b> a 9,99 €<br>termina venerdì 8 marzo", "expire_date": "07-03-2024 23:59:59"}
4040
$show_promo = false;
41-
if (file_exists('promo.json')){
42-
$json_data = file_get_contents('promo.json');
41+
if (file_exists('promo/promo.json')){
42+
$json_data = file_get_contents('promo/promo.json');
4343
$data = json_decode($json_data, true);
4444

4545
$promo_str = $data["promo_str"];

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
// SHOW PROMO BANNER?
4848
// promo.json example: {"promo_str": "Offerta a tempo limitato!<br>Tutti i corsi in <b>offerta speciale</b> a 9,99 €<br>termina venerdì 8 marzo", "expire_date": "07-03-2024 23:59:59"}
4949
$show_promo = false;
50-
if (file_exists('promo.json')){
51-
$json_data = file_get_contents('promo.json');
50+
if (file_exists('promo/promo.json')){
51+
$json_data = file_get_contents('promo/promo.json');
5252
$data = json_decode($json_data, true);
5353

5454
$promo_str = $data["promo_str"];

0 commit comments

Comments
 (0)