aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <georg@ownCloud.com>2013-05-27 19:19:17 +0200
committerGeorg Ehrke <georg@ownCloud.com>2013-05-27 19:19:17 +0200
commit58c9175a567fe8db0a3ed4711d8360526d3cdaf8 (patch)
tree8cefaadd9c0c5d6f838fdd5c0ceafe9d8b607a56
parentefb2e692300452f4a82f4136d595c6cdb0e33a9f (diff)
downloadnextcloud-server-58c9175a567fe8db0a3ed4711d8360526d3cdaf8.tar.gz
nextcloud-server-58c9175a567fe8db0a3ed4711d8360526d3cdaf8.zip
move check if internet connection is disabled on purpose to a dedicated method
-rwxr-xr-xlib/util.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index 51f9fcffc43..5fadb8cb244 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -641,9 +641,8 @@ class OC_Util {
* Check if the ownCloud server can connect to the internet
*/
public static function isinternetconnectionworking() {
-
// in case there is no internet connection on purpose there is no need to display a warning
- if (!\OC_Config::getValue("has_internet_connection", true)) {
+ if (self::isinternetconnectionenabled() === false) {
return false;
}
@@ -666,6 +665,13 @@ class OC_Util {
}
}
+
+ /**
+ * Check if the connection to the internet is disabled on purpose
+ */
+ public static function isinternetconnectionenabled(){
+ return \OC_Config::getValue("has_internet_connection", true);
+ }
/**
* clear all levels of output buffering