From 31872111ebac0a0fac30ab6219c435a40b400fb8 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 27 Apr 2015 15:20:40 +0200 Subject: [PATCH] Use content. --- h5p.classes.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 326e516..4dd3c20 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1580,10 +1580,9 @@ Class H5PExport { /** * Delete .h5p file * - * @param int/string $contentId - * Identifier for the H5P + * @param array $content object */ - public function deleteExport($contentId) { + public function deleteExport($content) { $h5pDir = $this->h5pC->path . DIRECTORY_SEPARATOR; $zipPath = $h5pDir . 'exports' . DIRECTORY_SEPARATOR . ($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p'; if (file_exists($zipPath)) {