Skip to content
Snippets Groups Projects
Commit d8084c13 authored by Thomas Müller's avatar Thomas Müller
Browse files

new function \OC_Util::runningOnWindows()

parent 9961235c
Branches
No related tags found
No related merge requests found
......@@ -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");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment