diff --git a/lib/defaults.php b/lib/defaults.php index 59f8d976fe..a43269dd67 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 cab6e56dad..cb411cacc5 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -60,7 +60,7 @@ usort( $languages, function ($a, $b) { //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 28254b7aa1..a74849a2ec 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -230,10 +230,15 @@ 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 f0002c505c..75aab15760 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.')); ?>
- - + + +