Skip to content

fix(CapabilitiesService): fix typo causing custom productName to be ignored#5321

Open
joshtrichards wants to merge 1 commit intomainfrom
jtr/fix-getProductName-typo
Open

fix(CapabilitiesService): fix typo causing custom productName to be ignored#5321
joshtrichards wants to merge 1 commit intomainfrom
jtr/fix-getProductName-typo

Conversation

@joshtrichards
Copy link
Member

  • Resolves: #
  • Target version: main

Summary

Don't see a bug report for this, but it's a bug.

TODO

  • ...

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

…gnored

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added bug Something isn't working 3. to review Ready to be reviewed branding labels Jan 31, 2026
Comment on lines +108 to +109
if (isset($this->capabilities['productName']) && $theme !== 'nextcloud') {
return $this->capabilities['productName'];
Copy link
Member

Choose a reason for hiding this comment

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

Thanks this is a good catch. One small addition:

Suggested change
if (isset($this->capabilities['productName']) && $theme !== 'nextcloud') {
return $this->capabilities['productName'];
if (isset($this->getCapabilities()['productName']) && $theme !== 'nextcloud') {
return $this->getCapabilities()['productName'];

To be in line with the rest and also cover it in case it is the first method is called

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Ready to be reviewed branding bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments