From 5adffcaeb82e03c2669c53ede33f4a08449ae6ac Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Tue, 7 Apr 2015 15:36:28 +0200 Subject: [PATCH] Added content id. --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index 3c1efd7..eb02c47 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1477,7 +1477,7 @@ Class H5PExport { public function createExportFile($content) { $h5pDir = $this->h5pF->getH5pPath() . DIRECTORY_SEPARATOR; $tempPath = $h5pDir . 'temp' . DIRECTORY_SEPARATOR . $content['id']; - $zipPath = $h5pDir . 'exports' . DIRECTORY_SEPARATOR . $content['slug'] . '.h5p'; + $zipPath = $h5pDir . 'exports' . DIRECTORY_SEPARATOR . $content['slug'] . '-' . $content['id'] . '.h5p'; // Temp dir to put the h5p files in @mkdir($tempPath, 0777, TRUE);