new function \OC_Util::runningOnWindows()
This commit is contained in:
parent
9961235c7b
commit
d8084c132e
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue