From 7c70d1b2a591c059a20b8008295a739b2f15af8f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu>
Date: Sun, 11 Nov 2007 22:43:44 +0000
Subject: [PATCH] #191306 by xmacinfo, slightly modified: use standard reload
 link on all error pages

---
 includes/theme.inc | 1 +
 install.php        | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/includes/theme.inc b/includes/theme.inc
index e50d8c896ddd..c986c05e5cb2 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1104,6 +1104,7 @@ function theme_install_page($content) {
     $title = count($messages['error']) > 1 ? st('The following errors must be resolved before you can continue the installation process') : st('The following error must be resolved before you can continue the installation process');
     $variables['messages'] .= '<h3>'. $title .':</h3>';
     $variables['messages'] .= theme('status_messages', 'error');
+    $variables['content'] .= '<p>'. st('Please check the error messages and <a href="!url">try again</a>.', array('!url' => request_uri())) .'</p>';
   }
 
   // Special handling of status messages
diff --git a/install.php b/install.php
index 66ee2d980336..0b91fee33f81 100644
--- a/install.php
+++ b/install.php
@@ -616,7 +616,7 @@ function install_missing_modules_error($profile) {
   drupal_maintenance_theme();
   install_task_list('requirements');
   drupal_set_title(st('Modules missing'));
-  print theme('install_page', '<p>'. st('One or more required modules are missing. Please check the error messages and <a href="!url">try again</a>.', array('!url' => "install.php?profile=$profile")) .'</p>');
+  print theme('install_page', '<p>'. st('One or more required modules are missing.') .'</p>');
   exit;
 }
 
-- 
GitLab