aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-25 18:55:23 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-27 12:25:52 +0100
commitb89827d76197c4dbb18bcbbee7cc35c2f78f88c4 (patch)
tree5354ec4f3ce57aedd8332bae264f4387da8e484d /lib/private/TemplateLayout.php
parentd07d66e24ba1baf8b1f1c00ddd05fa2e64e8f54e (diff)
downloadnextcloud-server-b89827d76197c4dbb18bcbbee7cc35c2f78f88c4.tar.gz
nextcloud-server-b89827d76197c4dbb18bcbbee7cc35c2f78f88c4.zip
Enable renderAs public page
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r--lib/private/TemplateLayout.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 8cc235bf818..eb8477ca9e9 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -123,6 +123,10 @@ class TemplateLayout extends \OC_Template {
} else if ($renderAs == 'guest') {
parent::__construct('core', 'layout.guest');
$this->assign('bodyid', 'body-login');
+ } else if ($renderAs == 'public') {
+ parent::__construct('core', 'layout.public');
+ $this->assign( 'appid', $appId );
+ $this->assign('bodyid', 'body-public');
} else {
parent::__construct('core', 'layout.base');