mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
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:
commit
b6f168b6fa
@ -113,7 +113,16 @@ if ($install_package) {
|
||||
|
||||
$chunks = explode("_", basename($package));
|
||||
$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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user