fixed from error
This commit is contained in:
@@ -52,6 +52,7 @@ class Renderer {
|
||||
}
|
||||
$this->templateName = $templateName ?: (!in_array($scriptName, ['ffajs', 'fvajs', '', '/']) ? $scriptName : 'index');
|
||||
$this->connectDb();
|
||||
$this->content['year'] = date('Y');
|
||||
}
|
||||
|
||||
private function createPublicMenuItems(): void {
|
||||
@@ -173,7 +174,9 @@ class Renderer {
|
||||
}
|
||||
|
||||
private function footer(): void {
|
||||
$this->website = str_replace('{{footer}}', file_get_contents('templates/footer.html'), $this->website);
|
||||
$footerTemplate = file_get_contents('templates/footer.html');
|
||||
$footer = str_replace('{{year}}', date('Y'), $footerTemplate);
|
||||
$this->website = str_replace('{{footer}}', $footer, $this->website);
|
||||
}
|
||||
|
||||
protected function showInputField(array $errors, string $inputType, string $fieldName, int $fieldLength): void {
|
||||
|
||||
Reference in New Issue
Block a user