]> source.dussan.org Git - nextcloud-server.git/commitdiff
add default doc url
authorBjörn Schießle <schiessle@owncloud.com>
Wed, 12 Jun 2013 14:19:28 +0000 (16:19 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Thu, 13 Jun 2013 14:37:30 +0000 (16:37 +0200)
lib/defaults.php

index a43269dd67e293fde6de0e89867b3fdc584c68f0..ebe18986322059bb53665bc5fd819b7d8fab3582 100644 (file)
@@ -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;