summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/application.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/application.php b/core/application.php
index fd8d474..4c7fdb2 100644
--- a/core/application.php
+++ b/core/application.php
@@ -52,8 +52,8 @@ $configuration = [
'TEMPLATE.LANG' => 'en',
'ADMIN.TEMPLATE' => 'admin',
'ADMIN.LANGUAGE' => 'en',
- 'PATHINFO.PROT' => $_SERVER['REQUEST_SCHEME'],
- 'PATHINFO.HOST' => $_SERVER['HTTP_HOST'],
+ 'PATHINFO.PROT' => $_SERVER['REQUEST_SCHEME'] ?? 'https',
+ 'PATHINFO.HOST' => $_SERVER['HTTP_HOST'] ?? 'localhost',
'PATHINFO.BASE' => '',
'PAGE.DIRECTORY' => 'page',
'POST.DIRECTORY' => 'post',