Commit 53488151f2
Unsigned
Layout: unified · split
index.php +1 −1
| @@ -230,7 +230,7 @@ function echo_html(string $page_url, string $page_description, string $page_titl | ||
| 230 | 230 | $page_content |
| 231 | 231 | ); |
| 232 | 232 | |
| 233 | $template->echo_template(); | |
| 233 | $template->echo_template('templates/template.html'); | |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | // EOF |
src/View/class-template.php +1 −2
| @@ -38,9 +38,8 @@ class Template | ||
| 38 | 38 | $this->current_year = date("Y"); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | public function echo_template() { | |
| 41 | public function echo_template(string $template_file) { | |
| 42 | 42 | // Get the template file |
| 43 | $template_file = 'templates/template.html'; | |
| 44 | 43 | $page = file_get_contents($template_file); |
| 45 | 44 | |
| 46 | 45 | // Replace the template variables |