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 . '/'; }