From 53488151f29e3afbd1b1348597ff2123b97ad2d7 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 14 Jun 2023 15:05:14 -0500 Subject: extract template file string for better compatibility --- src/View/class-template.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/View/class-template.php') diff --git a/src/View/class-template.php b/src/View/class-template.php index f0bfdcd..9a3c598 100644 --- a/src/View/class-template.php +++ b/src/View/class-template.php @@ -38,9 +38,8 @@ class Template $this->current_year = date("Y"); } - public function echo_template() { + public function echo_template(string $template_file) { // Get the template file - $template_file = 'templates/template.html'; $page = file_get_contents($template_file); // Replace the template variables -- cgit v1.2.3-70-g09d2