From 144f8c342b35b8940b93e5934f0c149266f5c313 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 10 Jan 2009 22:00:14 +0000 Subject: Change the format of the internal error messages and pretty print the installation parameters --- installer/views/installer.html.php | 9 +++++---- installer/views/installer.txt.php | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 14 deletions(-) (limited to 'installer/views') diff --git a/installer/views/installer.html.php b/installer/views/installer.html.php index fef71834..34bcb56c 100644 --- a/installer/views/installer.html.php +++ b/installer/views/installer.html.php @@ -25,15 +25,15 @@ -

Environment Tests

+ +

-

The following tests have been run to determine if Gallery3 will work in your environment. If any of the tests have failed, consult the - documentation for more information on how to correct the problem.

+

- $msg): ?> + $msg): ?> @@ -44,5 +44,6 @@
+ \ No newline at end of file diff --git a/installer/views/installer.txt.php b/installer/views/installer.txt.php index 5c98752f..3b6f0512 100644 --- a/installer/views/installer.txt.php +++ b/installer/views/installer.txt.php @@ -27,17 +27,17 @@ function print_msg($header, $msg, $error) { } } -echo "+", str_repeat("-", 98), "+\n"; -printf("| %-96.96s |\n", "Environment Tests"); -printf("| %-96.96s |\n", "The following tests have been run to determine if Gallery3 will work " . - "in your environment."); -printf("| %-96.96s |\n", "If any of the tests have failed, consult the documention on " . - "http://gallery.menalto.com"); -printf("| %-96.96s |\n", "for more information on how to correct the problem."); -echo "+", str_repeat("-", 98), "+\n"; +foreach (self::$messages as $section) { + echo "+", str_repeat("-", 98), "+\n"; + printf("| %-96.96s |\n", $section["header"]); + foreach (explode("\n", wordwrap($section["description"], 92)) as $text) { + printf("| %-96.96s |\n", $text); + } + echo "+", str_repeat("-", 98), "+\n"; -foreach (self::$messages as $header => $msg) { - print_msg($header, $msg["text"], $msg["error"]); + foreach ($section["msgs"] as $header => $msg) { + print_msg($header, $msg["text"], $msg["error"]); + } } echo "+", str_repeat("-", 98), "+\n"; -- cgit v1.2.3