some windows fixes

This commit is contained in:
friendica
2014-02-02 14:06:36 -08:00
parent e83419b53e
commit b39c0d54c0
3 changed files with 21 additions and 10 deletions

View File

@@ -373,7 +373,10 @@ function check_php(&$phpath, &$checks) {
if (strlen($phpath)){
$passed = file_exists($phpath);
} else {
$phpath = trim(shell_exec('which php'));
if(is_windows())
$phpath = trim(shell_exec('where php'));
else
$phpath = trim(shell_exec('which php'));
$passed = strlen($phpath);
}
$help = "";