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
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user