aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-03-20 12:31:36 +0100
committerVincent Petry <pvince81@owncloud.com>2014-03-20 12:57:55 +0100
commit6de9033d8655f172320fd092916b51b56b0f8080 (patch)
tree92548a31f07820f0f9028f6805cc2f3fd1f153af /lib
parent36c0f08ec0c5327f9b38f1078ee0d6ef8823b8da (diff)
downloadnextcloud-server-6de9033d8655f172320fd092916b51b56b0f8080.tar.gz
nextcloud-server-6de9033d8655f172320fd092916b51b56b0f8080.zip
Added warning for Mac OS on setup page
Diffstat (limited to 'lib')
-rwxr-xr-xlib/private/util.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 70dadb1befd..f72276418ba 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -1085,13 +1085,22 @@ class OC_Util {
}
/**
- * @return bool - well are we running on windows or not
+ * Checks whether the server is running on Windows
+ * @return bool true if running on Windows, false otherwise
*/
public static function runningOnWindows() {
return (substr(PHP_OS, 0, 3) === "WIN");
}
/**
+ * Checks whether the server is running on Mac OS X
+ * @return bool true if running on Mac OS X, false otherwise
+ */
+ public static function runningOnMac() {
+ return (strtoupper(substr(PHP_OS, 0, 6)) === 'DARWIN');
+ }
+
+ /**
* Handles the case that there may not be a theme, then check if a "default"
* theme exists and take that one
* @return string the theme