Changed current_package_enterprise

This commit is contained in:
Daniel Maya 2017-05-26 11:15:00 +02:00
parent cca5f7d2ef
commit b7e7e9e66a
1 changed files with 10 additions and 2 deletions

View File

@ -116,8 +116,16 @@ 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";