diff options
author | Christian Cleberg <hello@cleberg.net> | 2023-06-14 15:05:14 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2023-06-14 15:05:14 -0500 |
commit | 53488151f29e3afbd1b1348597ff2123b97ad2d7 (patch) | |
tree | dda93dfb04d711a5b588ea5b87720ce46c8a1c7b /src/View/class-template.php | |
parent | 83b1821aa99b94edb7c3d0e0670ceab78990a12c (diff) | |
download | hn-53488151f29e3afbd1b1348597ff2123b97ad2d7.tar.gz hn-53488151f29e3afbd1b1348597ff2123b97ad2d7.tar.bz2 hn-53488151f29e3afbd1b1348597ff2123b97ad2d7.zip |
extract template file string for better compatibility
Diffstat (limited to 'src/View/class-template.php')
-rw-r--r-- | src/View/class-template.php | 3 |
1 files changed, 1 insertions, 2 deletions
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 |