This commit is contained in:
Bruno Rybársky 2024-02-02 12:34:12 +01:00
parent f45200ee01
commit 5a087db6d2

@ -143,16 +143,17 @@ function getPage($page_name = null): array|false|string
if(!empty($pageMetadata["parameters"]["page_script"])){
$script_location = $pageMetadata["parameters"]["page_script"];
echo $script_location;
}
else{
$script_location = "assets/scripts/$site_name/$page_name.js";
echo $script_location;
}
if(file_exists($style_location)) {
$script_tag = $script_location;
}
else{
echo $script_location;
$script_tag = "";
}