From 939bc3e71c1cb4db8bb127031c2b064c5341b545 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Wed, 12 Jun 2013 15:15:08 +0200 Subject: [PATCH] keep all strings in one place to make it easier to change them --- core/templates/layout.base.php | 2 +- core/templates/layout.guest.php | 9 +++--- core/templates/layout.user.php | 2 +- lib/defaults.php | 49 +++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 lib/defaults.php diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php index cebb9e561f1..163e8e3ae7e 100644 --- a/core/templates/layout.base.php +++ b/core/templates/layout.base.php @@ -7,7 +7,7 @@ - <?php OC_Util::getEditionString() === '' ? p("ownCloud") : p("ownCloud Enterprise Edition") ?> + <?php p(OC_Defaults::getName()); ?> diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 3ccc9e32182..03da7559b8c 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -7,7 +7,7 @@ - <?php OC_Util::getEditionString() === '' ? p("ownCloud") : p("ownCloud Enterprise Edition") ?> + <?php p(OC_Defaults::getName()); ?> @@ -41,9 +41,8 @@ + + – +

diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 6e9afecf9e8..c04df7df9c5 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -8,7 +8,7 @@ <?php p(!empty($_['application'])?$_['application'].' | ':''); - OC_Util::getEditionString() === '' ? p("ownCloud") : p("ownCloud Enterprise Edition"); + p(OC_Defaults::getName()); p(trim($_['user_displayname']) != '' ?' ('.$_['user_displayname'].') ':'') ?> diff --git a/lib/defaults.php b/lib/defaults.php new file mode 100644 index 00000000000..59f8d976fe9 --- /dev/null +++ b/lib/defaults.php @@ -0,0 +1,49 @@ +t(self::$communitySlogan); + } else { + return self::$enterpriseSlogan; + } + } + +} \ No newline at end of file -- 2.39.5