Fixed H5P.Base.getLibraryFilePath() bug

editor-padding
Paal Joergensen 2015-07-14 14:46:35 +02:00
parent e36582c714
commit 8cf384f46a
1 changed files with 2 additions and 1 deletions

View File

@ -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!