From: Björn Schießle Date: Wed, 12 Jun 2013 13:44:11 +0000 (+0200) Subject: make footer and urls aware of ownCloud editions X-Git-Tag: v5.0.8~96 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ae2615e74de3b197aeca052b1251784dd752208b;p=nextcloud-server.git make footer and urls aware of ownCloud editions --- diff --git a/lib/defaults.php b/lib/defaults.php index 59f8d976fe9..a43269dd67e 100644 --- a/lib/defaults.php +++ b/lib/defaults.php @@ -5,11 +5,13 @@ class OC_Defaults { private static $communityEntity = "ownCloud"; private static $communityName = "ownCloud"; private static $communityBaseUrl = "http://owncloud.org"; + private static $communitySyncClientUrl = " http://owncloud.org/sync-clients/"; private static $communitySlogan = "web services under your control"; private static $enterpriseEntity = "ownCloud Inc."; private static $enterpriseName = "ownCloud Enterprise Edition"; private static $enterpriseBaseUrl = "https://owncloud.com"; + private static $enterpiseSyncClientUrl = "https://owncloud.com/products/desktop-clients"; private static $enterpriseSlogan = "Your Cloud, Your Data, Your Way!"; @@ -21,6 +23,14 @@ class OC_Defaults { } } + public static function getSyncClientUrl() { + if (OC_Util::getEditionString() === '') { + return self::$communitySyncClientUrl; + } else { + return self::$enterpiseSyncClientUrl; + } + } + public static function getName() { if (OC_Util::getEditionString() === '') { return self::$communityName; diff --git a/settings/personal.php b/settings/personal.php index 9bbc66c9b7f..d6c84b5bbc3 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -51,7 +51,7 @@ array_unshift($languages, $userLang); //links to clients $clients = array( - 'desktop' => OC_Config::getValue('customclient_desktop', 'http://owncloud.org/sync-clients/'), + 'desktop' => OC_Config::getValue('customclient_desktop', OC_Defaults::getSyncClientUrl()), 'android' => OC_Config::getValue('customclient_android', 'https://play.google.com/store/apps/details?id=com.owncloud.android'), 'ios' => OC_Config::getValue('customclient_ios', 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8') ); diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 992d75e481f..0aba0c746a2 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -225,11 +225,16 @@ endfor;?> - +
t('Version'));?> ownCloud ()
t('Developed by the ownCloud community, the source code is licensed under the AGPL.')); ?>
+ + + diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 4a046973307..161a482b915 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -106,12 +106,15 @@ if($_['passwordChangeSupported']) { print_unescaped($form); };?> - +
t('Version'));?> ownCloud
t('Developed by the ownCloud community, the source code is licensed under the AGPL.')); ?>
- - + + +