Enable renderAs public page

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-01-25 18:55:23 +01:00 committed by Roeland Jago Douma
parent d07d66e24b
commit b89827d761
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 4 additions and 0 deletions

View File

@ -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');