diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-06-07 22:49:50 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-07 22:49:50 +0200 |
commit | 0575d149b4c0b83383395b931b418612a6e85a3b (patch) | |
tree | b3aed1d17e4c07859b5b12c325586cef90819988 /lib/ocsclient.php | |
parent | e867edd1c8ac2cdac6f300908b8de55dded9dc05 (diff) | |
download | nextcloud-server-0575d149b4c0b83383395b931b418612a6e85a3b.tar.gz nextcloud-server-0575d149b4c0b83383395b931b418612a6e85a3b.zip |
Use the default parameter of OC_Config::getValue to set defaults
Diffstat (limited to 'lib/ocsclient.php')
-rw-r--r-- | lib/ocsclient.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/ocsclient.php b/lib/ocsclient.php index 33308553be0..8e976171e93 100644 --- a/lib/ocsclient.php +++ b/lib/ocsclient.php @@ -35,12 +35,7 @@ class OC_OCSClient{ * This function returns the url of the OCS AppStore server. It´s possible to set it in the config file or it will fallback to the default */ private static function getAppStoreURL(){ - $configurl=OC_Config::getValue('appstoreurl', ''); - if($configurl<>'') { - $url=$configurl; - }else{ - $url='http://api.apps.owncloud.com/v1'; - } + $url = OC_Config::getValue('appstoreurl', 'http://api.apps.owncloud.com/v1'); return($url); } @@ -50,12 +45,7 @@ class OC_OCSClient{ * This function returns the url of the OCS knowledge base server. It´s possible to set it in the config file or it will fallback to the default */ private static function getKBURL(){ - $configurl=OC_Config::getValue('knowledgebaseurl', ''); - if($configurl<>'') { - $url=$configurl; - }else{ - $url='http://api.apps.owncloud.com/v1'; - } + $url = OC_Config::getValue('knowledgebaseurl', 'http://api.apps.owncloud.com/v1'); return($url); } |