From 374379c68980d3b803452593f9e0fb73fcd12c8b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 14 Aug 2010 21:32:58 -0400 Subject: Move ERROR down into main screen area --- usr/local/www/installer.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'usr') diff --git a/usr/local/www/installer.php b/usr/local/www/installer.php index 50e9c29..77ff66c 100644 --- a/usr/local/www/installer.php +++ b/usr/local/www/installer.php @@ -605,7 +605,7 @@ EOF; ob_flush(); $disks = installer_find_all_disks(); if(!$disks) { - $custom_txt = gettext("WARNING: Could not find any suitable disks for installation."); + $custom_txt = gettext("ERROR: Could not find any suitable disks for installation."); } else { // Prepare disk selection dropdown $custom_txt = <<Easy installation of {$g['product_name']} using the ZFS filesystem on disk {$disk}"; $disk = installer_find_first_disk(); - if(!$disk) - echo gettext("WARNING: Could not find any suitable disks for installation."); page_table_start(); echo << @@ -699,6 +697,15 @@ function installer_main() {
+EOF; + if(!$disk) { + echo gettext("ERROR: Could not find any suitable disks for installation."); + echo "
"; + end_html(); + exit; + } + echo << Easy installation of {$g['product_name']} using the UFS filesystem on disk {$disk} -- cgit v1.1