Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-03-05 12:03:26 +0300
committerJulius Härtl <jus@bitgrid.net>2021-06-16 12:36:56 +0300
commit4673b54a2cfcdf7976fcd295b98d72858619ffad (patch)
tree322d232416e2b3a6968768443bbb3ce577f31bad /apps/theming/lib
parent51add75e515e16e9ca259b46f0e82621cfa280fc (diff)
Add dedicated product name to OCP\Defaults
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r--apps/theming/lib/ThemingDefaults.php7
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);
}