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
|
@ -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 New Issue