Merge branch '925-UM-Offline-y-current_package_enterprise-dev' into 'develop'

Changed current_package_enterprise

See merge request !516
This commit is contained in:
vgilc 2017-06-02 11:00:51 +02:00
commit eab92ce1c8
1 changed files with 10 additions and 2 deletions

View File

@ -116,8 +116,16 @@ if ($install_package) {
$package = trim($package);
$chunks = explode("_", basename($package));
$chunks = explode(".", $chunks[1]);
$version = $chunks[0];
$chunks = explode(".", $chunks[1]);
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
$files_total = $package . "/files.txt";