From cf100a86e20af21463593d7331bd0cdb40a82305 Mon Sep 17 00:00:00 2001 From: Siau Pheng Date: Fri, 30 Oct 2026 16:47:21 +0700 Subject: [PATCH] update last modified date and refactor HTTP host retrieval in Menu class --- src/Web/Menu.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);