diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-06-16 03:39:06 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-06-16 03:39:06 +1000 |
| commit | 38aec8b852fc52ab63fca3f36b1e4dcc3054e051 (patch) | |
| tree | 86a24dfcb2e266f773b0aeb9b498c7a8cd4f892f | |
| parent | d184b591d88eaae4addd5ac67a4b62c04d085a6a (diff) | |
"Are you sure you want to continue" message when pre-installation test failed
| -rw-r--r-- | install.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/install.php b/install.php index a7bf8e96..2422abb9 100644 --- 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); @@ -428,4 +431,4 @@ echo Element('page.html', $page); } -?>
\ No newline at end of file +?> |
