1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:38:59 +01:00

Update phar.php

This commit is contained in:
Daniil Gentili 2021-04-10 15:53:53 +02:00 committed by GitHub
parent 12f4e7dbf4
commit ff1994b39b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,15 +72,13 @@ function ___install_madeline()
$version = (string) \min(80, (int) (PHP_MAJOR_VERSION.PHP_MINOR_VERSION));
$versions = [];
if ($custom_branch === '') {
$versions []= $version;
$versions []= 70;
} else {
if ($custom_branch !== '') {
$versions []= "$version-$custom_branch";
$versions []= "70-$custom_branch";
}
$versions []= $version;
$versions []= 70;
}
$versions []= 5;
// Checking if defined branch/default branch builds can be downloaded
foreach ($versions as $chosen) {