diff --git a/.devilbox/www/htdocs/_ajax_callback.php b/.devilbox/www/htdocs/_ajax_callback.php index f002edab..d6ae14d0 100644 --- a/.devilbox/www/htdocs/_ajax_callback.php +++ b/.devilbox/www/htdocs/_ajax_callback.php @@ -48,9 +48,19 @@ if (loadClass('Helper')->isLoggedIn()) { $_GET['software'] => (($version = loadClass('Php')->getDrupalConsoleVersion()) !== false) ? $version : $no )); } - else if ($_GET['software'] == 'drush') { + else if ($_GET['software'] == 'drush7') { echo json_encode(array( - $_GET['software'] => (($version = loadClass('Php')->getDrushVersion()) !== false) ? $version : $no + $_GET['software'] => (($version = loadClass('Php')->getDrushVersion(7)) !== false) ? $version : $no + )); + } + else if ($_GET['software'] == 'drush8') { + echo json_encode(array( + $_GET['software'] => (($version = loadClass('Php')->getDrushVersion(8)) !== false) ? $version : $no + )); + } + else if ($_GET['software'] == 'drush9') { + echo json_encode(array( + $_GET['software'] => (($version = loadClass('Php')->getDrushVersion(9)) !== false) ? $version : $no )); } else if ($_GET['software'] == 'git') { diff --git a/.devilbox/www/htdocs/index.php b/.devilbox/www/htdocs/index.php index dfa806c2..a9a2acd9 100644 --- a/.devilbox/www/htdocs/index.php +++ b/.devilbox/www/htdocs/index.php @@ -391,8 +391,16 @@ $HEALTH_PERCENT = 100 - ceil(100 * $HEALTH_FAILS / $HEALTH_TOTAL);