aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/Functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/Functions.php')
-rw-r--r--bootstrap/Functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/Functions.php b/bootstrap/Functions.php
index a515402..0ec1dac 100644
--- a/bootstrap/Functions.php
+++ b/bootstrap/Functions.php
@@ -24,7 +24,7 @@ function fetch(string $path, string $field)
{
$config = include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/AppConfig.php';;
$json = file_get_contents(
- 'http://' . $_SERVER['SERVER_NAME']
+ $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['SERVER_NAME']
. $path . '?token=' . $config['cms']['token']
);
$data = json_decode($json, true);