Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues when using the public layout without a PublicTemplateResponse #10530

Merged
merged 3 commits into from
Aug 6, 2018

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Aug 3, 2018

Fixes #10528

Remove unused parameter access:

  • Undefined index: header-classes: /core/templates/layout.public.php@84c46dd#L33 (blame)
  • Undefined index: user_displayname /core/templates/layout.public.php@84c46dd#L3 (blame)

Allow using the public layout in a regular TemplateResponse

  • "Undefined variable: template"
    Call to a member function getHeaderTitle() on null /core/templates/layout.public.php@84c46dd#L38 (blame)

This still needs a fix for calendar, which is using 'public' instead of 'base' the public calendar embedding, see: nextcloud/calendar#882

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Aug 6, 2018
@nickvergessen nickvergessen merged commit f67d942 into master Aug 6, 2018
@nickvergessen nickvergessen deleted the bugfix/10528/public-template branch August 6, 2018 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

layout.public.php is broken
4 participants