REL-0.12 Fix version getter

This commit is contained in:
cytopia 2017-10-02 13:00:48 +02:00
parent 3990d2de71
commit 5d11a09866
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -85,12 +85,12 @@ if (loadClass('Helper')->isLoggedIn()) {
} }
else if ($_GET['software'] == 'symfony') { else if ($_GET['software'] == 'symfony') {
echo json_encode(array( echo json_encode(array(
$_GET['software'] => (($version = loadClass('Php')->getPhalconVersion()) !== false) ? $version : $no $_GET['software'] => (($version = loadClass('Php')->getSymfonyVersion()) !== false) ? $version : $no
)); ));
} }
else if ($_GET['software'] == 'wpcli') { else if ($_GET['software'] == 'wpcli') {
echo json_encode(array( echo json_encode(array(
$_GET['software'] => (($version = loadClass('Php')->getSymfonyVersion()) !== false) ? $version : $no $_GET['software'] => (($version = loadClass('Php')->getWpcliVersion()) !== false) ? $version : $no
)); ));
} else { } else {
echo json_encode(array($_GET['software'] => 'unknown software')); echo json_encode(array($_GET['software'] => 'unknown software'));