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