From b51746212e115fc0119377605207b4be2eeeb1a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Tue, 4 Aug 2020 07:51:14 +0200 Subject: [PATCH] Add base renderAs template MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/public/AppFramework/Http/TemplateResponse.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/public/AppFramework/Http/TemplateResponse.php b/lib/public/AppFramework/Http/TemplateResponse.php index 9622d9696dc..3885f57aaa1 100644 --- a/lib/public/AppFramework/Http/TemplateResponse.php +++ b/lib/public/AppFramework/Http/TemplateResponse.php @@ -46,6 +46,10 @@ class TemplateResponse extends Response { * @since 20.0.0 */ public const RENDER_AS_BLANK = ''; + /** + * @since 20.0.0 + */ + public const RENDER_AS_BASE = 'base'; /** * @since 20.0.0 */ @@ -188,6 +192,7 @@ class TemplateResponse extends Response { } elseif (in_array($this->renderAs, [ self::RENDER_AS_GUEST, self::RENDER_AS_BLANK, + self::RENDER_AS_BASE, self::RENDER_AS_ERROR, self::RENDER_AS_PUBLIC, self::RENDER_AS_USER], true)) { -- 2.39.5