From dfc60683410640018b00cc956f68114d059f50b9 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 16 Jun 2011 03:39:06 +1000 Subject: [PATCH] "Are you sure you want to continue" message when pre-installation test failed --- install.php | 11 +++++++---- 1 file 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'] .= '' . $item . ''; } @@ -149,7 +150,9 @@ $page['body'] .= '

- Continue. + Continue' . (isset($__is_error) ? ' anyway' : '') . '.

'; echo Element('page.html', $page); @@ -428,4 +431,4 @@ echo Element('page.html', $page); } -?> \ No newline at end of file +?>