From 0a8f6754ec3e1e218c779e5feacfa455f2161c59 Mon Sep 17 00:00:00 2001 From: Sebastien Curt <sebastien.curt@tetras-libre.fr> Date: Mon, 28 Feb 2022 12:57:38 +0100 Subject: [PATCH] remove link to production on php files in legacy --- capsule-prototype/php/project.php | 2 +- legacy/la-page-des-malins.php | 2 +- legacy/php/project.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/capsule-prototype/php/project.php b/capsule-prototype/php/project.php index 86840d9..972893a 100644 --- a/capsule-prototype/php/project.php +++ b/capsule-prototype/php/project.php @@ -310,7 +310,7 @@ if(!file_exists("create.zip")) { $retours["value"] .= "Download of create.zip... "; - downloadFile("http://project.memorekall.fr/create.zip", "create.zip"); + downloadFile($_ENV('LEGACY_URL') . "create.zip", "create.zip"); } $zip = new ZipArchive; diff --git a/legacy/la-page-des-malins.php b/legacy/la-page-des-malins.php index 4b9b5bb..6332bf3 100644 --- a/legacy/la-page-des-malins.php +++ b/legacy/la-page-des-malins.php @@ -39,7 +39,7 @@ echo "Copie de create.zip -> ".$entry."/php/create.zip\n"; copy("create.zip", $entry."/php/create.zip"); - $url = "http://project.memorekall.com/".$entry."/php/project.php?update=now"; + $url = $_ENV('LEGACY_URL') .$entry."/php/project.php?update=now"; echo "Update de ".$url."\n"; openUrl($url); } diff --git a/legacy/php/project.php b/legacy/php/project.php index 5b0c73b..a189242 100644 --- a/legacy/php/project.php +++ b/legacy/php/project.php @@ -309,7 +309,7 @@ if(!file_exists("create.zip")) { $retours["value"] .= "Download of create.zip... "; - downloadFile("http://project.memorekall.fr/create.zip", "create.zip"); + downloadFile($_ENV('LEGACY_URL') . "create.zip", "create.zip"); } $zip = new ZipArchive; -- GitLab