From e7b811c39d2325df7f7811438a14d3e5d616ff09 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Fri, 17 Mar 2017 09:02:40 +0100 Subject: [PATCH] Fixed error in um offline oum path to get mrs. --- pandora_console/include/ajax/rolling_release.ajax.php | 2 +- pandora_console/include/functions.php | 2 +- pandora_console/include/functions_db.php | 2 +- pandora_console/include/javascript/update_manager.js | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/ajax/rolling_release.ajax.php b/pandora_console/include/ajax/rolling_release.ajax.php index 0415dcc2a6..cc72cf2da2 100644 --- a/pandora_console/include/ajax/rolling_release.ajax.php +++ b/pandora_console/include/ajax/rolling_release.ajax.php @@ -29,7 +29,7 @@ if (is_ajax ()) { } else { if ($offline) { - $dir = $package . "extras/mr"; + $dir = $package . "/extras/mr"; } else { $dir = sys_get_temp_dir() . "/pandora_oum/" . $package . "/extras/mr"; diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index c5e2b59993..329f625c95 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -2691,7 +2691,7 @@ function get_number_of_mr($package, $ent, $offline) { } else { if ($offline) { - $dir = $package . "extras/mr"; + $dir = $package . "/extras/mr"; } else { $dir = sys_get_temp_dir() . "/pandora_oum/" . $package . "/extras/mr"; diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index 049f624914..da29447ff7 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -1728,7 +1728,7 @@ function db_check_minor_relase_available_to_um ($package, $ent, $offline) { } else { if ($offline) { - $dir = $package . "extras/mr"; + $dir = $package . "/extras/mr"; } else { $dir = sys_get_temp_dir() . "/pandora_oum/" . $package . "/extras/mr"; diff --git a/pandora_console/include/javascript/update_manager.js b/pandora_console/include/javascript/update_manager.js index da3c697627..7cba95b4de 100644 --- a/pandora_console/include/javascript/update_manager.js +++ b/pandora_console/include/javascript/update_manager.js @@ -212,6 +212,7 @@ function install_package (package, homeurl) { parameters['search_minor'] = 1; parameters['package'] = package; parameters['ent'] = 1; + parameters['offline'] = 1; $.ajax({ type: 'POST',