From 41bc7f1a08c9551bbd98b2bd3f78f8aed67adb9b Mon Sep 17 00:00:00 2001 From: pero1203 Date: Wed, 20 Oct 2021 09:26:44 +0200 Subject: [PATCH] Popravek brisanja zacasnih datotek pri nijz porocilu --- admin/survey/modules/mod_NIJZ/class.SurveyNIJZ.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/admin/survey/modules/mod_NIJZ/class.SurveyNIJZ.php b/admin/survey/modules/mod_NIJZ/class.SurveyNIJZ.php index 7aaf4f832..034da3dd5 100644 --- a/admin/survey/modules/mod_NIJZ/class.SurveyNIJZ.php +++ b/admin/survey/modules/mod_NIJZ/class.SurveyNIJZ.php @@ -509,10 +509,20 @@ class SurveyNIJZ{ unlink($temp_folder.'/nijz_'.$this->usr_id.'.csv'); } + // Pobrisemo TEX porocilo + if (file_exists($results_folder.'/report_'.$this->usr_id.'.tex')) { + unlink($results_folder.'/report_'.$this->usr_id.'.tex'); + } + // Pobrisemo PDF porocilo if (file_exists($results_folder.'/report_'.$this->usr_id.'.pdf')) { unlink($results_folder.'/report_'.$this->usr_id.'.pdf'); } + + // Pobrisemo se radar.png + if (file_exists($results_folder.'/img/radar.png')) { + unlink($results_folder.'/img/radar.png'); + } } // Pobrisemo sliko grafa