diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-03-05 10:03:26 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-06-16 11:36:56 +0200 |
commit | 4673b54a2cfcdf7976fcd295b98d72858619ffad (patch) | |
tree | 322d232416e2b3a6968768443bbb3ce577f31bad /apps/theming | |
parent | 51add75e515e16e9ca259b46f0e82621cfa280fc (diff) | |
download | nextcloud-server-4673b54a2cfcdf7976fcd295b98d72858619ffad.tar.gz nextcloud-server-4673b54a2cfcdf7976fcd295b98d72858619ffad.zip |
Add dedicated product name to OCP\Defaults
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming')
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 6e9298bdbcc..9d0ea78d8ea 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -75,6 +75,8 @@ class ThemingDefaults extends \OC_Defaults { /** @var string */ private $entity; /** @var string */ + private $productName; + /** @var string */ private $url; /** @var string */ private $color; @@ -119,6 +121,7 @@ class ThemingDefaults extends \OC_Defaults { $this->name = parent::getName(); $this->title = parent::getTitle(); $this->entity = parent::getEntity(); + $this->productName = parent::getName(); $this->url = parent::getBaseUrl(); $this->color = parent::getColorPrimary(); $this->iTunesAppId = parent::getiTunesAppId(); @@ -142,6 +145,10 @@ class ThemingDefaults extends \OC_Defaults { return strip_tags($this->config->getAppValue('theming', 'name', $this->entity)); } + public function getProductName() { + return strip_tags($this->config->getAppValue('theming', 'productName', $this->productName)); + } + public function getBaseUrl() { return $this->config->getAppValue('theming', 'url', $this->url); } |