diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-06-16 03:45:59 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-06-16 03:45:59 +1000 |
| commit | 12d6dc85e607e2200756d6d4b09ace36a1a8ef77 (patch) | |
| tree | 277ac9627b8359ffd99e4d5837ef7d4fa56169cf /install.php | |
| parent | da86c76165398bfa8a29c8bd78a1dd157c561737 (diff) | |
a notice and link to tinyboard.org wiki when filling out the config
Diffstat (limited to 'install.php')
| -rwxr-xr-x | install.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/install.php b/install.php index b05016fb..a9e6b2e6 100755 --- a/install.php +++ b/install.php @@ -117,8 +117,9 @@ } function row($item, $result) { - global $page, $config; - + global $page, $config, $__is_error; + if(!$result) + $__is_error = true; $page['body'] .= '<tr><th>' . $item . '</th><td><img style="width:16px;height:16px" src="' . $config['dir']['static'] . ($result ? 'ok.png' : 'error.png') . '" /></td></tr>'; } @@ -149,7 +150,9 @@ $page['body'] .= '</table> <p style="text-align:center"> - <a href="?step=2">Continue.</a> + <a href="?step=2"' . + (isset($__is_error) ? ' onclick="return confirm(\'Are you sure you want to continue when errors exist?\')"' : '') . + '>Continue' . (isset($__is_error) ? ' anyway' : '') . '.</a> </p>'; echo Element('page.html', $page); |
