More appropriate error message for conf.php files
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 5 Jan 2011 08:41:10 +0000 (01:41 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 5 Jan 2011 08:54:24 +0000 (01:54 -0700)
horde/lib/Test.php

index 15a416e..e6b217c 100644 (file)
@@ -668,7 +668,14 @@ class Horde_Test
 
             if (!$result) {
                 if (empty($val)) {
-                    $entry[] = 'The file <code>' . $key . '</code> appears to be missing. You probably just forgot to copy <code>' . $key . '.dist</code> over. While you do that, take a look at the settings and make sure they are appropriate for your site.';
+                    $text = 'The file <code>' . $key . '</code> appears to be missing.';
+                    if ($key == 'config/conf.php') {
+                        $text .= ' You need to login to Horde as an administrator and create the initial configuration file.';
+                    } else {
+                        $text .= ' You probably just forgot to copy <code>' . $key . '.dist</code> over. While you do that, take a look at the settings and make sure they are appropriate for your site.';
+                    }
+
+                    $entry[] = $text;
                 } else {
                     $entry[] = $val;
                 }