Browse Source

Update dispatch.php

pull/674/head
danpros 1 year ago
parent
commit
640442b742
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      system/includes/dispatch.php

+ 1
- 2
system/includes/dispatch.php View File

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


Loading…
Cancel
Save