From 185f442df8476e46dd75de02315eff99ea1ca7cf Mon Sep 17 00:00:00 2001
From: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Fri, 26 Sep 2014 15:38:35 +0200
Subject: [PATCH] for whitelabeled edition, show branding name (e.g.
 'ownCloud') instead of appname in header bar

---
 core/templates/layout.user.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index a7ce9a5be8..04cb6eb9de 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -53,7 +53,13 @@
 			</a>
 			<a href="#" class="menutoggle">
 				<div class="header-appname">
-					<?php p(!empty($_['application'])?$_['application']: $l->t('Apps')); ?>
+					<?php
+						if(OC_Util::getEditionString() === '') {
+							p(!empty($_['application'])?$_['application']: $l->t('Apps'));
+						} else {
+							p($theme->getName());
+						}
+					?>
 				</div>
 				<div class="icon-caret svg"></div>
 			</a>
-- 
GitLab