make sure old fetch_url calls (and those that provided their own curl wrapper) go through z_fetch_url

This commit is contained in:
friendica
2013-02-25 20:06:33 -08:00
parent 46a89910ae
commit c45a8e2763
3 changed files with 15 additions and 28 deletions

View File

@@ -467,8 +467,8 @@ function check_htaccess(&$checks) {
$status = true;
$help = "";
if (function_exists('curl_init')){
$test = fetch_url($a->get_baseurl()."/setup/testrewrite");
if ($test!="ok") {
$test = z_fetch_url($a->get_baseurl()."/setup/testrewrite");
if ((! $test['success']) || ($test['body'] != "ok")) {
$status = false;
$help = t('Url rewrite in .htaccess is not working. Check your server configuration.');
}