Skip to content
Snippets Groups Projects
Commit 524fed30 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #48215: Fix update.php links at the end

parent 24a598a9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -466,9 +466,9 @@ function update_progress_page_nojs() { ...@@ -466,9 +466,9 @@ function update_progress_page_nojs() {
function update_finished_page() { function update_finished_page() {
drupal_set_title('Drupal database update'); drupal_set_title('Drupal database update');
// NOTE: we can't use l() here because the URL would point to 'update.php?q=admin'. // NOTE: we can't use l() here because the URL would point to 'update.php?q=admin'.
$links[] = '<a href="">main page</a>'; $links[] = '<a href="'. base_path() .'">main page</a>';
$links[] = '<a href="?q=admin">administration pages</a>'; $links[] = '<a href="'. base_path() .'?q=admin">administration pages</a>';
$output = '<p>Updates were attempted. If you see no failures below, you may proceed happily to the <a href="?q=admin">administration pages</a>. Otherwise, you may need to update your database manually. All errors have been <a href="?q=admin/logs">logged</a>.</p>'; $output = '<p>Updates were attempted. If you see no failures below, you may proceed happily to the <a href="index.php?q=admin">administration pages</a>. Otherwise, you may need to update your database manually. All errors have been <a href="index.php?q=admin/logs">logged</a>.</p>';
if ($GLOBALS['access_check'] == FALSE) { if ($GLOBALS['access_check'] == FALSE) {
$output .= "<p><strong>Reminder: don't forget to set the <code>\$access_check</code> value at the top of <code>update.php</code> back to <code>TRUE</code>.</strong>"; $output .= "<p><strong>Reminder: don't forget to set the <code>\$access_check</code> value at the top of <code>update.php</code> back to <code>TRUE</code>.</strong>";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment