summaryrefslogtreecommitdiffstats
path: root/lib/util.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-05 15:43:12 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-05 15:43:12 +0100
commitd8084c132ec411381519fe9dba2d235148692da4 (patch)
tree933947b312dc967565839db068927ef9322f3d6d /lib/util.php
parent9961235c7bcaa40ad2bd8222f2e5eb98dc6c72d6 (diff)
downloadnextcloud-server-d8084c132ec411381519fe9dba2d235148692da4.tar.gz
nextcloud-server-d8084c132ec411381519fe9dba2d235148692da4.zip
new function \OC_Util::runningOnWindows()
Diffstat (limited to 'lib/util.php')
-rwxr-xr-xlib/util.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 363e3f105c0..c5ef4e3b6f4 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");
+ }
+
}