mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #22097 from nextcloud/enh/noid/empty-template
Add empty renderAs template
This commit is contained in:
commit
0581356169
1 changed files with 5 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue