From 640442b7426db160dbafd481966ba77e3ea851a6 Mon Sep 17 00:00:00 2001 From: danpros Date: Sat, 6 Jan 2024 19:29:50 +0700 Subject: [PATCH] Update dispatch.php --- system/includes/dispatch.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/includes/dispatch.php b/system/includes/dispatch.php index 264c53e..1e9fa9a 100644 --- a/system/includes/dispatch.php +++ b/system/includes/dispatch.php @@ -36,8 +36,7 @@ function generateSiteUrl() } $scheme = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http'; if ($dir === '') { - $siteUrl = $scheme . '://' . trim($_SERVER['SERVER_NAME'], "/") . $port . "/"; - return; + return $siteUrl = $scheme . '://' . trim($_SERVER['SERVER_NAME'], "/") . $port . "/"; } return $siteUrl = $scheme . '://' . trim($_SERVER['SERVER_NAME'], "/") . $port . "/" . $dir . '/'; }