summaryrefslogtreecommitdiff
path: root/installer/views/installer.txt.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-01-10 22:00:14 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-01-10 22:00:14 +0000
commit144f8c342b35b8940b93e5934f0c149266f5c313 (patch)
treedf5abc5b8a6aa6fd351052efc21b0bfa258ea0e9 /installer/views/installer.txt.php
parent15c25d85ece4fa53d5b3ec35e3e564133a328648 (diff)
Change the format of the internal error messages and pretty print the installation parameters
Diffstat (limited to 'installer/views/installer.txt.php')
-rw-r--r--installer/views/installer.txt.php20
1 files changed, 10 insertions, 10 deletions
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";