bug: menu modul url fixed
This commit is contained in:
+2
-6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user