From 8cf384f46ace41b678c4829ba52d5e55619bbe57 Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Tue, 14 Jul 2015 14:46:35 +0200 Subject: [PATCH] Fixed H5P.Base.getLibraryFilePath() bug --- js/h5p.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/h5p.js b/js/h5p.js index 63c29a8..41cad63 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -97,7 +97,8 @@ H5P.Base = function (constructor, standalone, library) { * @return {string} The full path to the file */ this.getLibraryFilePath = function (filePath) { - return H5P.getLibraryPath(library.library) + '/' + filePath; + var libraryObject = H5P.libraryFromString(library.library); + return H5P.getLibraryPath(libraryObject.machineName + '-' + libraryObject.majorVersion + '.' + libraryObject.minorVersion) + '/' + filePath; }; // This order makes it possible for an H5P library to override H5P.Base functions!