summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-03-05 10:03:26 +0100
committerJulius Härtl <jus@bitgrid.net>2021-06-16 11:36:56 +0200
commit4673b54a2cfcdf7976fcd295b98d72858619ffad (patch)
tree322d232416e2b3a6968768443bbb3ce577f31bad /lib/public
parent51add75e515e16e9ca259b46f0e82621cfa280fc (diff)
downloadnextcloud-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 'lib/public')
-rw-r--r--lib/public/Defaults.php12
1 files changed, 11 insertions, 1 deletions
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