diff --git a/src/Web/Menu.php b/src/Web/Menu.php index dbe2686..643d87b 100644 --- a/src/Web/Menu.php +++ b/src/Web/Menu.php @@ -5,7 +5,7 @@ Module : /Web/Menu.php Created By : Siau Pheng (siaupheng@3fonia.com). Created Date : January 16th, 2008. - Last Modified : October 21st, 2026. + Last Modified : October 30th, 2026. (c) 3FONIA Software; WWW.3FONIA.COM. @@ -141,7 +141,7 @@ final class Menu { $href1 = '//127.0.0.1/'; $href2 = ""; } else { - $_host = $this->app->request()->getVar('HTTP_ORIGIN') ?? $this->app->request()->getVar('HTTP_HOST') ?? $this->web_app['PARENT_SITE']; + $_host = $_SERVER['HTTP_ORIGIN'] ?? $_SERVER['HTTP_HOST'] ?? $this->web_app['PARENT_SITE']; $_host = str_replace(['http://','https://'], "", $_host); if ($this->web_app['PARENT_SUB'] === true) { $_subs = explode('.', $_host);