+ {'Creation of config file local/config/database.inc.php failed.'|@translate}
+
+
+
+
{'You can download the config file and upload it to local/config directory of your installation.'|@translate}
+
+
+
+
+
+
{'An alternate solution is to copy the text in the box above and paste it into the file "local/config/database.inc.php" (Warning : database.inc.php must only contain what is in the textarea, no line return or space character)'|@translate}
+
+
+
+
+{/if}
+
{if isset($errors)}
diff --git a/install.php b/install.php
index 92c8d7a0b..7ddd080b7 100644
--- a/install.php
+++ b/install.php
@@ -335,17 +335,13 @@ define(\'DB_COLLATE\', \'\');
@fputs($fh, $file_content, strlen($file_content));
@fclose($fh);
- $error_copy = l10n('Creation of config file local/config/database.inc.php failed.');
- $error_copy .= sprintf(' %s %s',
- $tmp_filename,
- l10n('You can download the config file'),
- l10n('and upload it to local/config directory of your installation.')
+ $template->assign(
+ array(
+ 'config_creation_failed' => true,
+ 'config_url' => 'install.php?dl='.$tmp_filename,
+ 'config_file_content' => $file_content,
+ )
);
-
- $error_copy .= '
';
- $error_copy .= l10n('An alternate solution is to copy the text in the box above and paste it into the file "local/config/database.inc.php" (Warning : database.inc.php must only contain what is in the textarea, no line return or space character)');
- $error_copy .= '
';
- $error_copy .= '';
}
@fputs($fp, $file_content, strlen($file_content));
@fclose($fp);
@@ -443,10 +439,10 @@ if ($step == 3)
{
$html_content = htmlentities( $file_content, ENT_QUOTES );
$html_content = nl2br( $html_content );
- $error_copy = l10n('Copy the text in pink between hyphens and paste it into the file "local/config/database.inc.php"(Warning : database.inc.php must only contain what is in pink, no line return or space character)');
- $error_copy .= ' -------------------------------------------------------------------- ';
- $error_copy .= '' . $html_content . '';
- $error_copy .= ' -------------------------------------------------------------------- ';
+
+ $error_copy = l10n('An alternate solution is to copy the text in the box above and paste it into the file "local/config/database.inc.php" (Warning : database.inc.php must only contain what is in the textarea, no line return or space character)');
+ $error_copy .= '