From: Björn Schießle Date: Wed, 12 Jun 2013 13:15:08 +0000 (+0200) Subject: keep all strings in one place to make it easier to change them X-Git-Tag: v6.0.0alpha2~640^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b29e01d5cf4b1d149373e4b70e83510d7e7cd50f;p=nextcloud-server.git keep all strings in one place to make it easier to change them --- 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 dcd7562fd1c..e2be2f951eb 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