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); }