mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 10:19:00 +01:00
BC for 5.6
This commit is contained in:
parent
ff1994b39b
commit
02ffc5dec6
@ -71,6 +71,9 @@ function ___install_madeline()
|
|||||||
}
|
}
|
||||||
|
|
||||||
$version = (string) \min(80, (int) (PHP_MAJOR_VERSION.PHP_MINOR_VERSION));
|
$version = (string) \min(80, (int) (PHP_MAJOR_VERSION.PHP_MINOR_VERSION));
|
||||||
|
if ($version === "56") {
|
||||||
|
$version = 5;
|
||||||
|
}
|
||||||
$versions = [];
|
$versions = [];
|
||||||
if ($custom_branch !== '') {
|
if ($custom_branch !== '') {
|
||||||
$versions []= "$version-$custom_branch";
|
$versions []= "$version-$custom_branch";
|
||||||
@ -78,7 +81,6 @@ function ___install_madeline()
|
|||||||
}
|
}
|
||||||
$versions []= $version;
|
$versions []= $version;
|
||||||
$versions []= 70;
|
$versions []= 70;
|
||||||
$versions []= 5;
|
|
||||||
|
|
||||||
// Checking if defined branch/default branch builds can be downloaded
|
// Checking if defined branch/default branch builds can be downloaded
|
||||||
foreach ($versions as $chosen) {
|
foreach ($versions as $chosen) {
|
||||||
|
Loading…
Reference in New Issue
Block a user