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'].'../';
$href2 = "";
} else {
$_prot = 'http';
$_host = $_SERVER['HTTP_HOST'];
if (isset($_SERVER['HTTPS'])) {
$_prot = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http";
}
$_prot .= "://";
$_host = str_replace(['http://','https://'], "", $this->apps['PARENT_SITE']);
$_prot = "//";
if ($this->apps['PARENT_SUB']==true) {
$href1 = $_prot;
$href2 = ".". $_host;