mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-19 04:47:52 +00:00
REL-0.12 Fix version getter
This commit is contained in:
parent
3990d2de71
commit
5d11a09866
@ -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'));
|
||||||
|
Loading…
Reference in New Issue
Block a user