summaryrefslogtreecommitdiffstats
path: root/pts-core
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-19 10:46:11 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-19 10:46:11 -0400
commit1a4dd2f33de262875058b0b143f424ed5b28fb00 (patch)
treec626bdeb2021695dd8d6ffc8364d3b933f38ccce /pts-core
parent9b369350fa23261c1b095b3cfb410184e8f249c6 (diff)
downloadphoronix-test-suite-upstream-1a4dd2f33de262875058b0b143f424ed5b28fb00.tar.gz
phoronix-test-suite-upstream-1a4dd2f33de262875058b0b143f424ed5b28fb00.tar.xz
phoronix-test-suite-upstream-1a4dd2f33de262875058b0b143f424ed5b28fb00.zip
pts-core: When removing a saved result, remove the SVG files too (just
not PNG)
Diffstat (limited to 'pts-core')
-rw-r--r--pts-core/functions/pts-functions-extra.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions-extra.php b/pts-core/functions/pts-functions-extra.php
index aef3219..16d562a 100644
--- a/pts-core/functions/pts-functions-extra.php
+++ b/pts-core/functions/pts-functions-extra.php
@@ -34,6 +34,10 @@ function pts_remove_saved_result($identifier)
{
@unlink($remove_file);
}
+ foreach(glob(SAVE_RESULTS_DIR . $identifier . "/result-graphs/*.svg") as $remove_file)
+ {
+ @unlink($remove_file);
+ }
foreach(glob(SAVE_RESULTS_DIR . $identifier . "/test-*.xml") as $remove_file)
{