X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FApplicationUtils.php;h=978fc9da5aa29bb844957ff611da1d8bac5a4003;hb=07c2f73543b358d39b3751c8542966794f28db03;hp=6d878110cfe984f7e5b6e71d8d0801a888e673eb;hpb=4407b45fd3b09257ea79edba8d4f50db350f8fa9;p=github%2Fshaarli%2FShaarli.git diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index 6d878110..978fc9da 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php @@ -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); @@ -50,6 +50,8 @@ class ApplicationUtils * @param bool $enableCheck whether to check for new versions * @param bool $isLoggedIn whether the user is logged in * + * @throws Exception an invalid branch has been set for update checks + * * @return mixed the new version code if available and greater, else 'false' */ public static function checkUpdate($currentVersion,