wrong function
This commit is contained in:
parent
46114bb24d
commit
0877e5b578
@ -1873,7 +1873,7 @@ function probe_api_path($host) {
|
||||
foreach($paths as $path) {
|
||||
$curpath = $scheme . '://' . $host . $path;
|
||||
$x = z_fetch_url($curpath);
|
||||
if($x['success'] && ! strlen($x['body'], 'not implemented'))
|
||||
if($x['success'] && ! strpos($x['body'], 'not implemented'))
|
||||
return str_replace('version', '', $curpath);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user