diff options
Diffstat (limited to 'apps/theming/lib/ThemingDefaults.php')
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 5dd22fb6326..6ee546d2630 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -50,6 +50,10 @@ class ThemingDefaults extends \OC_Defaults { /** @var string */ private $name; /** @var string */ + private $title; + /** @var string */ + private $entity; + /** @var string */ private $url; /** @var string */ private $slogan; @@ -93,6 +97,8 @@ class ThemingDefaults extends \OC_Defaults { $this->appManager = $appManager; $this->name = parent::getName(); + $this->title = parent::getTitle(); + $this->entity = parent::getEntity(); $this->url = parent::getBaseUrl(); $this->slogan = parent::getSlogan(); $this->color = parent::getColorPrimary(); @@ -110,11 +116,11 @@ class ThemingDefaults extends \OC_Defaults { } public function getTitle() { - return $this->getName(); + return strip_tags($this->config->getAppValue('theming', 'name', $this->title)); } public function getEntity() { - return $this->getName(); + return strip_tags($this->config->getAppValue('theming', 'name', $this->entity)); } public function getBaseUrl() { |