cluster/containers/baikal/baikal-project-uri.patch
main 051a7da66a
Fix Baikal build
Signed-off-by: main <magic_rb@redalder.org>
2022-07-31 07:45:50 +02:00

15 lines
720 B
Diff

diff --git a/Core/Frameworks/Flake/Framework.php b/Core/Frameworks/Flake/Framework.php
index 73f6b9d..139ee75 100644
--- a/Core/Frameworks/Flake/Framework.php
+++ b/Core/Frameworks/Flake/Framework.php
@@ -239,7 +239,8 @@ class Framework extends \Flake\Core\Framework {
$sHttpBaseUrl = self::rmQuery($sHttpBaseUrl);
$sHttpBaseUrl = self::rmScriptName($sHttpBaseUrl, $sScript);
$sHttpBaseUrl = self::rmProjectContext($sHttpBaseUrl);
- define("PROJECT_URI", $sProtocol . "://" . $_SERVER["HTTP_HOST"] . $sHttpBaseUrl);
+ define("PROJECT_URI", $_SERVER['HTTP_X_BAIKAL_URI']);
+ echo $PROJECT_URI
unset($sScript);
unset($sDirName);
unset($sBaseUrl);