new function \OC_Util::runningOnWindows()

This commit is contained in:
Thomas Mueller 2013-02-05 15:43:12 +01:00
parent 9961235c7b
commit d8084c132e
1 changed files with 7 additions and 0 deletions

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