Merge branch 'ent-6211-Revisar-actualizacion-online-open' into 'develop'
fixed open online update See merge request artica/pandorafms!3420
This commit is contained in:
commit
7d3bc0b67f
|
@ -3361,6 +3361,10 @@ function get_number_of_mr($package, $ent, $offline)
|
|||
$sqlfiles_num = preg_replace($pattern, $replacement, $sqlfiles);
|
||||
|
||||
foreach ($sqlfiles_num as $num) {
|
||||
if ($num <= $config['MR']) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$mr_size[] = $num;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1843,9 +1843,15 @@ function update_manager_recurse_copy($src, $dst, $black_list)
|
|||
while (false !== ( $file = readdir($dir))) {
|
||||
if (( $file != '.' ) && ( $file != '..' ) && (!in_array($file, $black_list))) {
|
||||
if (is_dir($src.'/'.$file)) {
|
||||
$dir_dst = $dst;
|
||||
|
||||
if ($file != 'pandora_console') {
|
||||
$dir_dst .= '/'.$file;
|
||||
}
|
||||
|
||||
if (!update_manager_recurse_copy(
|
||||
$src.'/'.$file,
|
||||
$dst.'/'.$file,
|
||||
$dir_dst,
|
||||
$black_list
|
||||
)
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue