summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-11-03 21:13:07 +0100
committerLukas Reschke <lukas@owncloud.com>2014-11-03 21:14:27 +0100
commitbe5ae6c44f8fae9364c0be65f4f685d7c1afa104 (patch)
tree10c0d131da0ccc0b19b75f5562e84dab2a758c8f
parentd2276215a475062c781f57d80f912f421f4b69fe (diff)
downloadnextcloud-server-be5ae6c44f8fae9364c0be65f4f685d7c1afa104.tar.gz
nextcloud-server-be5ae6c44f8fae9364c0be65f4f685d7c1afa104.zip
Support HTML in logo claim
-rw-r--r--core/templates/layout.user.php2
-rw-r--r--lib/private/defaults.php12
-rw-r--r--lib/public/defaults.php8
3 files changed, 21 insertions, 1 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 9f94344b21b..f7f2b3dc735 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -49,7 +49,7 @@
if(OC_Util::getEditionString() === '') {
p(!empty($_['application'])?$_['application']: $l->t('Apps'));
} else {
- p($theme->getName());
+ print_unescaped($theme->getHTMLName());
}
?>
</div>
diff --git a/lib/private/defaults.php b/lib/private/defaults.php
index cc6c819f03f..c16ebdbe24c 100644
--- a/lib/private/defaults.php
+++ b/lib/private/defaults.php
@@ -157,6 +157,18 @@ class OC_Defaults {
}
/**
+ * Returns the short name of the software containing HTML strings
+ * @return string title
+ */
+ public function getHTMLName() {
+ if ($this->themeExist('getHTMLName')) {
+ return $this->theme->getHTMLName();
+ } else {
+ return $this->defaultName;
+ }
+ }
+
+ /**
* Returns entity (e.g. company name) - used for footer, copyright
* @return string entity name
*/
diff --git a/lib/public/defaults.php b/lib/public/defaults.php
index 9af31245ff4..662071a29a9 100644
--- a/lib/public/defaults.php
+++ b/lib/public/defaults.php
@@ -98,6 +98,14 @@ class Defaults {
}
/**
+ * name of your ownCloud instance containing HTML styles
+ * @return string
+ */
+ public function getHTMLName() {
+ return $this->defaults->getHTMLName();
+ }
+
+ /**
* Entity behind your onwCloud instance
* @return string
*/