new function \OC_Util::runningOnWindows()

This commit is contained in:
Thomas Mueller 2013-02-05 15:43:12 +01:00
parent 9961235c7b
commit d8084c132e

View File

@ -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");
}
}