diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-05 11:42:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 11:42:29 +0200 |
commit | 05813561691aca15116334464a64e8be054ddcbf (patch) | |
tree | 126bb2d15482a6d4c9f984ce24434d264092c55b /lib | |
parent | f16efe8eca1ab49af103fd478f6548401a8dc0f4 (diff) | |
parent | b51746212e115fc0119377605207b4be2eeeb1a6 (diff) | |
download | nextcloud-server-05813561691aca15116334464a64e8be054ddcbf.tar.gz nextcloud-server-05813561691aca15116334464a64e8be054ddcbf.zip |
Merge pull request #22097 from nextcloud/enh/noid/empty-template
Add empty renderAs template
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/AppFramework/Http/TemplateResponse.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -49,6 +49,10 @@ class TemplateResponse extends Response { /** * @since 20.0.0 */ + public const RENDER_AS_BASE = 'base'; + /** + * @since 20.0.0 + */ public const RENDER_AS_USER = 'user'; /** * @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)) { |