From 678f62d10a8c10e4526d07aafff7ec15a3fbbc70 Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Thu, 7 Mar 2013 05:31:30 +0100 Subject: [PATCH] Fix problem with h5peditor changes not beeing saved when a node is beeing revisioned --- h5p.classes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index c2efea0..f8c6e3e 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -105,7 +105,7 @@ interface H5PFrameworkInterface { public function saveContentData($contentId, $contentJson, $mainJsonData, $mainLibraryId, $contentMainId = NULL); /** - * Copies content data + * Copies library usage * * @param int $contentId * Framework specific id identifying the content @@ -116,7 +116,7 @@ interface H5PFrameworkInterface { * That supports versioning. (In this case the content id will typically be * the version id, and the contentMainId will be the frameworks content id */ - public function copyContentData($contentId, $copyFromId, $contentMainId = NULL); + public function copyLibraryUsage($contentId, $copyFromId, $contentMainId = NULL); /** * Deletes content data @@ -727,7 +727,7 @@ class H5PStorage { $destination_path = $this->h5pF->getH5pPath() . DIRECTORY_SEPARATOR . 'content' . DIRECTORY_SEPARATOR . $contentId; $this->h5pC->copyTree($source_path, $destination_path); - $this->h5pF->copyContentData($contentId, $copyFromId, $contentMainId); + $this->h5pF->copyLibraryUsage($contentId, $copyFromId, $contentMainId); } public function getLibraryUsage(&$librariesInUse, $jsonData, $dynamic = FALSE) {