diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-05 15:43:12 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-05 15:43:12 +0100 |
commit | d8084c132ec411381519fe9dba2d235148692da4 (patch) | |
tree | 933947b312dc967565839db068927ef9322f3d6d /lib/util.php | |
parent | 9961235c7bcaa40ad2bd8222f2e5eb98dc6c72d6 (diff) | |
download | nextcloud-server-d8084c132ec411381519fe9dba2d235148692da4.tar.gz nextcloud-server-d8084c132ec411381519fe9dba2d235148692da4.zip |
new function \OC_Util::runningOnWindows()
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 7 |
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"); + } + } |