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:
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user