diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-03-20 12:31:36 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-03-20 12:57:55 +0100 |
commit | 6de9033d8655f172320fd092916b51b56b0f8080 (patch) | |
tree | 92548a31f07820f0f9028f6805cc2f3fd1f153af /lib | |
parent | 36c0f08ec0c5327f9b38f1078ee0d6ef8823b8da (diff) | |
download | nextcloud-server-6de9033d8655f172320fd092916b51b56b0f8080.tar.gz nextcloud-server-6de9033d8655f172320fd092916b51b56b0f8080.zip |
Added warning for Mac OS on setup page
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/private/util.php | 11 |
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 |