diff --git a/lib/page.php b/lib/page.php index 614673a..75d58c6 100644 --- a/lib/page.php +++ b/lib/page.php @@ -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 = ""; }