summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_tests.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-29 20:34:27 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-29 20:34:27 -0500
commit958b4824250429483b3c3a9c8c8cd95b7a9f3586 (patch)
tree0e2a840a165cf93e2893cf006be786e23a70a5db /pts-core/functions/pts-functions_tests.php
parent9e615e8e13e351d264d5dec91669fca39306b071 (diff)
downloadphoronix-test-suite-upstream-958b4824250429483b3c3a9c8c8cd95b7a9f3586.tar.gz
phoronix-test-suite-upstream-958b4824250429483b3c3a9c8c8cd95b7a9f3586.tar.xz
phoronix-test-suite-upstream-958b4824250429483b3c3a9c8c8cd95b7a9f3586.zip
pts-core: Allow pts_Graph to set the default image renderer for
blide_renderer
Diffstat (limited to 'pts-core/functions/pts-functions_tests.php')
-rw-r--r--pts-core/functions/pts-functions_tests.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/pts-core/functions/pts-functions_tests.php b/pts-core/functions/pts-functions_tests.php
index 5b3553f..bd4e270 100644
--- a/pts-core/functions/pts-functions_tests.php
+++ b/pts-core/functions/pts-functions_tests.php
@@ -123,25 +123,7 @@ function pts_save_result($save_to = null, $save_results = null)
$t = new pts_BarGraph($results_name[$i], $results_attributes[$i], $results_scale[$i]);
}
- if(pts_gd_available() && getenv("SVG_DEBUG") == false)
- {
- // Render to PNG
- $t->setRenderer("PNG");
- pts_copy(RESULTS_VIEWER_DIR . "pts-results-viewer.xsl", $save_to_dir . "/pts-results-viewer.xsl");
- file_put_contents($save_to_dir . "/pts-results-viewer.xsl", pts_get_results_viewer_xsl_formatted("PNG"));
- }
- else
- {
- if(!pts_is_assignment("PHP_SVG_TEXT"))
- {
- echo "\nThe PHP GD extension is missing, so the experimental SVG rendering engine is being used.\n";
- pts_set_assignment("PHP_SVG_TEXT", 1);
- }
-
- // Render to SVG
- $t->setRenderer("SVG");
- file_put_contents($save_to_dir . "/pts-results-viewer.xsl", pts_get_results_viewer_xsl_formatted("SVG"));
- }
+ file_put_contents($save_to_dir . "/pts-results-viewer.xsl", pts_get_results_viewer_xsl_formatted($t->getRenderer()));
$t->loadGraphIdentifiers($results_identifiers[$i]);
$t->loadGraphValues($results_values[$i]);