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:
Julius Härtl 2017-03-28 13:29:59 +02:00 committed by Roeland Jago Douma
parent 9a75714c22
commit 698396a927
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 5 additions and 2 deletions

View File

@ -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() {