From 4fed8ed891dedadd00103168258013d6ec43ce00 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 4 Sep 2024 16:41:13 -0700 Subject: [PATCH] fix: Fix missing footer on public pages Signed-off-by: Christopher Ng --- .../Http/Template/PublicTemplateResponse.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php b/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php index b89c84f297fdb..1000f4db549a7 100644 --- a/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php +++ b/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php @@ -159,4 +159,16 @@ public function setFooterVisible(bool $visible = false) { public function getFooterVisible(): bool { return $this->footerVisible; } + + /** + * @return string + * @since 14.0.0 + */ + public function render(): string { + $params = array_merge($this->getParams(), [ + 'template' => $this, + ]); + $this->setParams($params); + return parent::render(); + } }