Added back deprecated function.
parent
efd79c9e79
commit
cfe73006a2
13
js/h5p.js
13
js/h5p.js
|
@ -513,6 +513,19 @@ H5P.getPath = function (path, contentId) {
|
|||
return prefix + '/' + path;
|
||||
};
|
||||
|
||||
/**
|
||||
* THIS FUNCTION IS DEPRECATED, USE getPath INSTEAD
|
||||
* Will be remove march 2016.
|
||||
*
|
||||
* Find the path to the content files folder based on the id of the content
|
||||
*
|
||||
* @param contentId
|
||||
* Id of the content requesting a path
|
||||
*/
|
||||
H5P.getContentPath = function (contentId) {
|
||||
return H5PIntegration.url + '/content/' + contentId;
|
||||
};
|
||||
|
||||
/**
|
||||
* Get library class constructor from H5P by classname.
|
||||
* Note that this class will only work for resolve "H5P.NameWithoutDot".
|
||||
|
|
Loading…
Reference in New Issue