From d8084c132ec411381519fe9dba2d235148692da4 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Tue, 5 Feb 2013 15:43:12 +0100 Subject: [PATCH] new function \OC_Util::runningOnWindows() --- lib/util.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/util.php b/lib/util.php index 363e3f105c..c5ef4e3b6f 100755 --- a/lib/util.php +++ b/lib/util.php @@ -677,4 +677,11 @@ class OC_Util { return $data; } + /** + * @return bool - well are we running on windows or not + */ + public static function runningOnWindows() { + return (substr(PHP_OS, 0, 3) === "WIN"); + } + }