diff options
Diffstat (limited to 'app/helpers.php')
-rw-r--r-- | app/helpers.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers.php b/app/helpers.php index 0d8409c8..85a2507d 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -65,7 +65,7 @@ function markdown($text) function get_current_base_url() { - $url = isset($_SERVER['HTTPS']) ? 'https://' : 'http://'; + $url = \Core\Tool::isHTTPS() ? 'https://' : 'http://'; $url .= $_SERVER['SERVER_NAME']; $url .= $_SERVER['SERVER_PORT'] == 80 || $_SERVER['SERVER_PORT'] == 443 ? '' : ':'.$_SERVER['SERVER_PORT']; $url .= dirname($_SERVER['PHP_SELF']) !== '/' ? dirname($_SERVER['PHP_SELF']).'/' : '/'; |