MDL-39249 Return to the correct page after successful update deployment

The method available_update_deployer::make_execution_widget() used to
have hard-coded return URL. Now it accepts the return URL as the second
parameter and passes it to the mdeploy.php utility.

The callerurl parameter is now correctly passed and used.
This commit is contained in:
David Mudrák
2013-04-20 03:00:19 +02:00
parent 3a8c4380c0
commit 5d7a4bab3f
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ if ($fetchremote) {
$deployer = available_update_deployer::instance();
if ($deployer->enabled()) {
$myurl = new moodle_url($PAGE->url, array('updatesonly' => $updatesonly, 'contribonly' => $contribonly));
$deployer->initialize($myurl, $myurl);
$deployer->initialize($myurl, new moodle_url('/admin'));
$deploydata = $deployer->submitted_data();
if (!empty($deploydata)) {