]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/ApplicationUtils.php
Fixes #410 - Retrieve title fails in multiple cases
[github/shaarli/Shaarli.git] / application / ApplicationUtils.php
index 274331e16f6fe21ac444f330b25c69a0d09e1fe5..978fc9da5aa29bb844957ff611da1d8bac5a4003 100644 (file)
@@ -19,7 +19,7 @@ class ApplicationUtils
      */
     public static function getLatestGitVersionCode($url, $timeout=2)
     {
-        list($headers, $data) = get_http_url($url, $timeout);
+        list($headers, $data) = get_http_response($url, $timeout);
 
         if (strpos($headers[0], '200 OK') === false) {
             error_log('Failed to retrieve ' . $url);