From 4683e61fa77fd3c752136d8ff49e968922f99818 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 27 Apr 2015 13:13:00 +0200 Subject: [PATCH] Delete correct export file. --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index 79212be..326e516 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1585,7 +1585,7 @@ Class H5PExport { */ public function deleteExport($contentId) { $h5pDir = $this->h5pC->path . DIRECTORY_SEPARATOR; - $zipPath = $h5pDir . 'exports' . DIRECTORY_SEPARATOR . $contentId . '.h5p'; + $zipPath = $h5pDir . 'exports' . DIRECTORY_SEPARATOR . ($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p'; if (file_exists($zipPath)) { unlink($zipPath); }