Added a new fine filter to RR

This commit is contained in:
Arturo Gonzalez 2017-03-15 16:45:55 +01:00
parent 7054624a9b
commit fa885faf8e
2 changed files with 16 additions and 3 deletions

View File

@ -77,7 +77,10 @@ if (is_ajax ()) {
$file_dest = "$dir/updated/$number.sql";
if (copy($file, $file_dest)) {
if (file_exists($file_dest)) {
unlink($file);
}
else if (copy($file, $file_dest)) {
unlink($file);
}
}

View File

@ -1739,8 +1739,18 @@ function db_check_minor_relase_available_to_um () {
$replacement = "";
$sqlfiles_num = preg_replace($pattern, $replacement, $sqlfiles); // Get the number of the file
if ($sqlfiles_num) {
$have_minor_release = true;
$exists = false;
foreach ($sqlfiles_num as $num) {
$file_dest = "$dir/updated/$num.sql";
if (file_exists($file_dest)) {
$exists = true;
unlink("$dir/$num.sql");
}
}
if ($sqlfiles_num && !$exists) {
$have_minor_release = true;
}
}
}