forked from Adleraci/adlerka.top
Fix navigation
This commit is contained in:
parent
9d26c19ee2
commit
5fe6f8c976
@ -158,7 +158,13 @@ function getPage($page_name_in = null, $site_name_in = null): string
|
||||
function getPageEndpoint($page_name, $site_name) :array
|
||||
{
|
||||
global $routerRequest, $routerConfig;
|
||||
$page_location = $routerConfig["protocol"] . $site_name . $routerRequest["domain"] . "." . $routerRequest["tld"] . "/" . $page_name;
|
||||
if(!empty($site_name)){
|
||||
$subdomain = "$site_name.";
|
||||
}
|
||||
else{
|
||||
$subdomain = "";
|
||||
}
|
||||
$page_location = $routerConfig["protocol"] . $subdomain . $routerRequest["domain"] . "." . $routerRequest["tld"] . "/" . $page_name;
|
||||
$page_tmp = renderPage($page_name, $site_name);
|
||||
return [
|
||||
"Status" => "Success",
|
||||
|
Loading…
Reference in New Issue
Block a user