| 5 update.php | update_do_update_page() |
Perform updates for the JS version and return progress.
File
- ./
update.php, line 458 - Administrative page for handling updates from one Drupal version to another.
Code
function update_do_update_page() {
global $conf;
// HTTP Post required
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
drupal_set_message('HTTP Post is required.', 'error');
drupal_set_title('Error');
return '';
}
// Error handling: if PHP dies, the output will fail to parse as JSON, and
// the Javascript will tell the user to continue to the op=error page.
list($percentage, $message) = update_do_updates();
print drupal_to_js(array('status' => TRUE, 'percentage' => $percentage, 'message' => $message));
}
Login or register to post comments