summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/theming/lib/ThemingDefaults.php7
-rw-r--r--lib/public/Defaults.php12
2 files changed, 18 insertions, 1 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);
}
diff --git a/lib/public/Defaults.php b/lib/public/Defaults.php
index 5c15e73b405..7d74134cf48 100644
--- a/lib/public/Defaults.php
+++ b/lib/public/Defaults.php
@@ -104,7 +104,7 @@ class Defaults {
}
/**
- * name of your ownCloud instance
+ * name of your Nextcloud instance (e.g. MyPrivateCloud)
* @return string
* @since 6.0.0
*/
@@ -113,6 +113,16 @@ class Defaults {
}
/**
+ * Name of the software product (defaults to Nextcloud)
+ *
+ * @return string
+ * @since 22.0.0
+ */
+ public function getProductName(): string {
+ return $this->defaults->getProductName();
+ }
+
+ /**
* name of your ownCloud instance containing HTML styles
* @return string
* @since 8.0.0