From: Björn Schießle Date: Wed, 12 Jun 2013 14:19:28 +0000 (+0200) Subject: add default doc url X-Git-Tag: v5.0.8~95 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=22394d585560015f1ccef685e5671fb76c9301b5;p=nextcloud-server.git add default doc url --- diff --git a/lib/defaults.php b/lib/defaults.php index a43269dd67e..ebe18986322 100644 --- a/lib/defaults.php +++ b/lib/defaults.php @@ -6,11 +6,13 @@ class OC_Defaults { private static $communityName = "ownCloud"; private static $communityBaseUrl = "http://owncloud.org"; private static $communitySyncClientUrl = " http://owncloud.org/sync-clients/"; + private static $communityDocBaseUrl = "http://doc.owncloud.org"; 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 $enterpriseDocBaseUrl = "http://doc.owncloud.com"; private static $enterpiseSyncClientUrl = "https://owncloud.com/products/desktop-clients"; private static $enterpriseSlogan = "Your Cloud, Your Data, Your Way!"; @@ -31,6 +33,14 @@ class OC_Defaults { } } + public static function getDocBaseUrl() { + if (OC_Util::getEditionString() === '') { + return self::$communityDocBaseUrl; + } else { + return self::$enterpriseDocBaseUrl; + } + } + public static function getName() { if (OC_Util::getEditionString() === '') { return self::$communityName;