new function \OC_Util::runningOnWindows()

remotes/origin/stable5
Thomas Mueller 12 years ago
parent 9961235c7b
commit d8084c132e
  1. 7
      lib/util.php

@ -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…
Cancel
Save