1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 02:54:42 +01:00

BC for 5.6

This commit is contained in:
Daniil Gentili 2021-04-10 16:52:11 +02:00
parent ff1994b39b
commit 02ffc5dec6
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

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