Merge branch '924-UM-offline-and-current-package-6.0' into 'pandora_6.0'

924 um offline and current package 6.0

See merge request !606
This commit is contained in:
vgilc 2017-07-05 12:10:35 +02:00
commit b6f168b6fa

View File

@ -112,8 +112,17 @@ if ($install_package) {
$package = trim($package); $package = trim($package);
$chunks = explode("_", basename($package)); $chunks = explode("_", basename($package));
$chunks = explode(".", $chunks[1]); $chunks = explode(".", $chunks[1]);
$version = $chunks[0]; if(is_numeric($chunks[0])){
$version = $chunks[0];
}
else {
$current_package = db_get_value('value', 'tconfig',
'token', 'current_package_enterprise');
if (!empty($current_package)) {
$version = $current_package;
}
}
// All files extracted // All files extracted
$files_total = $package . "/files.txt"; $files_total = $package . "/files.txt";