bug: menu modul url fixed

This commit is contained in:
2025-03-18 17:34:24 +07:00
parent 9336b8b634
commit c37790ccea
+2 -6
View File
@@ -117,12 +117,8 @@ final class App {
$href1 = $this->apps['WEB_PATH'].'../'; $href1 = $this->apps['WEB_PATH'].'../';
$href2 = ""; $href2 = "";
} else { } else {
$_prot = 'http'; $_host = str_replace(['http://','https://'], "", $this->apps['PARENT_SITE']);
$_host = $_SERVER['HTTP_HOST']; $_prot = "//";
if (isset($_SERVER['HTTPS'])) {
$_prot = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http";
}
$_prot .= "://";
if ($this->apps['PARENT_SUB']==true) { if ($this->apps['PARENT_SUB']==true) {
$href1 = $_prot; $href1 = $_prot;
$href2 = ".". $_host; $href2 = ".". $_host;