diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-02 22:05:51 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-02 22:05:51 -0500 |
commit | 822459a4b92fda1aabbd0edbd33ab4d8445e3808 (patch) | |
tree | e54fe8bc92324f56dc26e0f9ec98892fcf69c1fd /pts-core/options/install_test.php | |
parent | 3828e81cf3832f592c03a8168d0250c9c52bfd9a (diff) | |
download | phoronix-test-suite-upstream-822459a4b92fda1aabbd0edbd33ab4d8445e3808.tar.gz phoronix-test-suite-upstream-822459a4b92fda1aabbd0edbd33ab4d8445e3808.tar.xz phoronix-test-suite-upstream-822459a4b92fda1aabbd0edbd33ab4d8445e3808.zip |
pts-core: Cut down on use of pts_exit() command due to the new option
architecture, instead use returns appropriately
Diffstat (limited to 'pts-core/options/install_test.php')
-rw-r--r-- | pts-core/options/install_test.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pts-core/options/install_test.php b/pts-core/options/install_test.php index d808443..69673c6 100644 --- a/pts-core/options/install_test.php +++ b/pts-core/options/install_test.php @@ -52,7 +52,8 @@ class install_test implements pts_option_interface if(strpos($agreement, "PCQS") == false) { - pts_exit("An error occurred while connecting to the Phoronix Test Suite Server. Please try again later."); + echo pts_string_header("An error occurred while connecting to the Phoronix Test Suite server. Try again later."); + return false; } echo "\n\n" . $agreement; @@ -66,7 +67,8 @@ class install_test implements pts_option_interface } else { - pts_exit(pts_string_header("In order to run PCQS you must agree to the listed terms.")); + pts_string_header("In order to run PCQS you must agree to the listed terms."); + return false; } } |