Changed current_package_enterprise
This commit is contained in:
parent
cca5f7d2ef
commit
b7e7e9e66a
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue