summaryrefslogtreecommitdiffstats
path: root/pts-core/functions
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-30 11:23:48 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-30 11:23:48 -0500
commitadbeecf3847a5aebd00640cb20aecc575011b3de (patch)
tree954d118798686987344631ff1c7d361bc2d7201b /pts-core/functions
parent3149b8438d52c636702d299f3295ef3322bcf0fb (diff)
downloadphoronix-test-suite-upstream-adbeecf3847a5aebd00640cb20aecc575011b3de.tar.gz
phoronix-test-suite-upstream-adbeecf3847a5aebd00640cb20aecc575011b3de.tar.xz
phoronix-test-suite-upstream-adbeecf3847a5aebd00640cb20aecc575011b3de.zip
pts-core: Update CSS and XSL for results viewer, fix table column
alignment bug
Diffstat (limited to 'pts-core/functions')
-rw-r--r--pts-core/functions/pts-functions-run.php5
-rw-r--r--pts-core/functions/pts-functions_tests.php9
2 files changed, 2 insertions, 12 deletions
diff --git a/pts-core/functions/pts-functions-run.php b/pts-core/functions/pts-functions-run.php
index 6868900..153bc0a 100644
--- a/pts-core/functions/pts-functions-run.php
+++ b/pts-core/functions/pts-functions-run.php
@@ -128,10 +128,7 @@ function pts_prompt_save_file_name($check_env = true)
$CUSTOM_TITLE = $PROPOSED_FILE_NAME;
$PROPOSED_FILE_NAME = pts_input_string_to_identifier($PROPOSED_FILE_NAME);
- if(pts_is_test($PROPOSED_FILE_NAME) || pts_is_suite($PROPOSED_FILE_NAME))
- {
- $is_reserved_word = true;
- }
+ $is_reserved_word = pts_is_test($PROPOSED_FILE_NAME) || pts_is_suite($PROPOSED_FILE_NAME);
}
while(empty($PROPOSED_FILE_NAME) || $is_reserved_word);
}
diff --git a/pts-core/functions/pts-functions_tests.php b/pts-core/functions/pts-functions_tests.php
index f96aae0..ae84ae7 100644
--- a/pts-core/functions/pts-functions_tests.php
+++ b/pts-core/functions/pts-functions_tests.php
@@ -640,14 +640,7 @@ function pts_test_version_compatible($version_compare = "")
$support_ends = preg_replace("/[^0-9]/", "", $support_ends);
- if($current >= $support_begins && $current <= $support_ends)
- {
- $compatible = true;
- }
- else
- {
- $compatible = false;
- }
+ $compatible = $current >= $support_begins && $current <= $support_ends;
}
return $compatible;