summaryrefslogtreecommitdiffstats
path: root/lib/defaults.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/defaults.php')
-rw-r--r--lib/defaults.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/defaults.php b/lib/defaults.php
index 196bb5cf14d..10813a3e8d8 100644
--- a/lib/defaults.php
+++ b/lib/defaults.php
@@ -16,6 +16,7 @@ class OC_Defaults {
private $defaultEntity;
private $defaultName;
+ private $defaultTitle;
private $defaultBaseUrl;
private $defaultSyncClientUrl;
private $defaultDocBaseUrl;
@@ -25,8 +26,9 @@ class OC_Defaults {
function __construct() {
$l = OC_L10N::get('core');
- $this->defaultEntity = "ownCloud";
- $this->defaultName = "ownCloud";
+ $this->defaultEntity = "ownCloud"; /* e.g. company name, used for footers and copyright notices */
+ $this->defaultName = "ownCloud"; /* short name, used when referring to the software */
+ $this->defaultTitle = "ownCloud"; /* can be a longer name, for titles */
$this->defaultBaseUrl = "http://owncloud.org";
$this->defaultSyncClientUrl = " http://owncloud.org/sync-clients/";
$this->defaultDocBaseUrl = "http://doc.owncloud.org";
@@ -69,6 +71,14 @@ class OC_Defaults {
}
}
+ public function getTitle() {
+ if ($this->themeExist('getTitle')) {
+ return $this->theme->getTitle();
+ } else {
+ return $this->defaultTitle;
+ }
+ }
+
public function getName() {
if ($this->themeExist('getName')) {
return $this->theme->getName();