From 94a720f2879f798b3cef1a32aa16fd90199d580c Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 11 Sep 2011 00:07:28 +0200 Subject: [PATCH] MDL-28595 explain the need to install into new db if something fails during the initial install --- lang/en/error.php | 1 + lib/outputrenderers.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lang/en/error.php b/lang/en/error.php index 5a1a66ef637..e10a92f45fa 100644 --- a/lang/en/error.php +++ b/lang/en/error.php @@ -250,6 +250,7 @@ $string['headersent'] = 'Headers already sent'; $string['idnumbertaken'] = 'ID number is already used for another course'; $string['importformatnotimplement'] = 'Sorry, importing this format is not yet implemented!'; $string['incorrectext'] = 'File has an incorrect extension'; +$string['installproblem'] = 'It is usually not possible to recover from errors triggered during the installation, you may need to create a new database or use a different database prefix if you want to retry the installation.'; $string['internalauthpassworderror'] = 'Missing password or invalid password policy for internal authentication'; $string['invalidaccess'] = 'This page was not accessed correctly'; $string['invalidaccessparameter'] = 'Invalid access parameter'; diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 08341a4e4a1..e7efd495aa8 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -2029,6 +2029,10 @@ EOD; $message = '

' . $message . '

'. '

' . get_string('moreinformation') . '

'; + if (empty($CFG->rolesactive)) { + $message .= '

' . get_string('installproblem', 'error') . '

'; + //It is usually not possible to recover from errors triggered during installation, you may need to create a new database or use a different database prefix for new installation. + } $output .= $this->box($message, 'errorbox'); if (debugging('', DEBUG_DEVELOPER)) {