mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Add fallback to getMailHeaderColor so we don't break existing themes
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
9a75714c22
commit
698396a927
1 changed files with 5 additions and 2 deletions
|
|
@ -276,11 +276,14 @@ class OC_Defaults {
|
|||
* @return string
|
||||
*/
|
||||
public function getColorPrimary() {
|
||||
|
||||
if ($this->themeExist('getColorPrimary')) {
|
||||
return $this->theme->getColorPrimary();
|
||||
} else {
|
||||
return $this->defaultMailHeaderColor;
|
||||
}
|
||||
if ($this->themeExist('getMailHeaderColor')) {
|
||||
return $this->theme->getMailHeaderColor();
|
||||
}
|
||||
return $this->defaultMailHeaderColor;
|
||||
}
|
||||
|
||||
public function shouldReplaceIcons() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue