From 0933b3b0d663541270b90ec40d802c909016491c Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 18 Jun 2019 18:45:49 +0200 Subject: [PATCH] Update loader --- phar.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/phar.php b/phar.php index 4f904127..0ff9749d 100644 --- a/phar.php +++ b/phar.php @@ -54,12 +54,17 @@ function ___install_madeline() $release_branch = ''; } $release_fallback_branch = ''; + if (isset($_SERVER['SERVER_ADMIN']) && strpos($_SERVER['SERVER_ADMIN'], '000webhost.io')) { + $release_branch = '-deprecated'; + $release_fallback_branch = '-deprecated'; + } if (PHP_MAJOR_VERSION <= 5) { $release_branch = '5'.$release_branch; $release_fallback_branch = '5'.$release_fallback_branch; } elseif (PHP_MAJOR_VERSION === 7 && PHP_MINOR_VERSION === 0) { - $release_branch = ''; + $release_branch = '70'.$release_branch; + $release_fallback_branch = '70'.$release_fallback_branch; } // Checking if defined branch/default branch builds can be downloaded