Use correct ID when copying package

pull/18/head wp-1.6.1
Frode Petterson 2016-04-05 16:06:09 +02:00
parent d912232433
commit 127dc4f0e1
1 changed files with 1 additions and 1 deletions

View File

@ -1468,7 +1468,7 @@ class H5PStorage {
* The main id of the new content (used in frameworks that support revisioning) * The main id of the new content (used in frameworks that support revisioning)
*/ */
public function copyPackage($contentId, $copyFromId, $contentMainId = NULL) { public function copyPackage($contentId, $copyFromId, $contentMainId = NULL) {
$this->h5pC->fs->cloneContent($contentId, $newContentId); $this->h5pC->fs->cloneContent($copyFromId, $contentId);
$this->h5pF->copyLibraryUsage($contentId, $copyFromId, $contentMainId); $this->h5pF->copyLibraryUsage($contentId, $copyFromId, $contentMainId);
} }
} }