]> source.dussan.org Git - nextcloud-server.git/commitdiff
new function \OC_Util::runningOnWindows()
authorThomas Mueller <thomas.mueller@tmit.eu>
Tue, 5 Feb 2013 14:43:12 +0000 (15:43 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Tue, 5 Feb 2013 14:43:12 +0000 (15:43 +0100)
lib/util.php

index 363e3f105c0423ac8a1aef3f501992b0aac6ab37..c5ef4e3b6f473c906f3eca57daf42a052eeefe8c 100755 (executable)
@@ -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");
+       }
+
 }