E-MAIL: Added core fix to all libraries who need it. Updated patch levels.

pull/1/head
Frode Petterson 2013-07-04 13:27:28 +02:00
parent b8a13c8ae1
commit 89b74e7839
2 changed files with 20 additions and 1 deletions

View File

@ -1,5 +1,24 @@
var H5P = H5P || {};
if (H5P.getPath === undefined) {
/**
* Find the path to the content files based on the id of the content
*
* Also identifies and returns absolute paths
*
* @param {String} path Absolute path to a file, or relative path to a file in the content folder
* @param {Number} contentId Identifier of the content requesting the path
* @returns {String} The path to use.
*/
H5P.getPath = function (path, contentId) {
if (path.substr(0, 7) === 'http://' || path.substr(0, 8) === 'https://') {
return path;
}
return H5PIntegration.getContentPath(contentId) + path;
};
}
/**
* Will render a Question with multiple choices for answers.
*

View File

@ -3,7 +3,7 @@
"contentType": "question",
"majorVersion": 1,
"minorVersion": 0,
"patchVersion": 18,
"patchVersion": 19,
"runnable": 1,
"machineName": "H5P.QuestionSet",
"author": "Amendor AS",