From 6de9033d8655f172320fd092916b51b56b0f8080 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 20 Mar 2014 12:31:36 +0100 Subject: Added warning for Mac OS on setup page --- lib/private/util.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib') 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,12 +1085,21 @@ 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 -- cgit v1.2.3