Delete correct export file.

redesign-copyrights
Frode Petterson 2015-04-27 13:13:00 +02:00
parent ccccec84e7
commit 4683e61fa7
1 changed files with 1 additions and 1 deletions

View File

@ -1585,7 +1585,7 @@ Class H5PExport {
*/ */
public function deleteExport($contentId) { public function deleteExport($contentId) {
$h5pDir = $this->h5pC->path . DIRECTORY_SEPARATOR; $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)) { if (file_exists($zipPath)) {
unlink($zipPath); unlink($zipPath);
} }