aboutsummaryrefslogtreecommitdiffstats
path: root/lib/defaults.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-06-12 16:19:28 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-06-12 16:19:28 +0200
commit5c6a8544899728005cc5900913dd21f67e926457 (patch)
tree04204325b838ebcb4dbfcc7f300c2206bbe8b156 /lib/defaults.php
parente1e798c623c9a9b26a4e369e5448c9ac3fe1b9fc (diff)
downloadnextcloud-server-5c6a8544899728005cc5900913dd21f67e926457.tar.gz
nextcloud-server-5c6a8544899728005cc5900913dd21f67e926457.zip
add default doc url
Diffstat (limited to 'lib/defaults.php')
-rw-r--r--lib/defaults.php10
1 files changed, 10 insertions, 0 deletions
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;