Merge branch 'without-pal' of github.com:h5p/h5p-php-library into without-pal
commit
909fb3aca3
|
@ -1251,7 +1251,9 @@ Class H5PExport {
|
|||
// Build h5p.json
|
||||
$h5pJson = array (
|
||||
'title' => $content['title'],
|
||||
'language' => $content['language'],
|
||||
// TODO - stop using 'und', this is not the preferred way.
|
||||
// Either remove language from the json if not existing, or use "language": null
|
||||
'language' => isset($content['language']) ? $content['language'] : 'und',
|
||||
'mainLibrary' => $content['library']['name'],
|
||||
'embedTypes' => $embedTypes,
|
||||
);
|
||||
|
@ -1344,7 +1346,7 @@ class H5PCore {
|
|||
|
||||
public static $coreApi = array(
|
||||
'majorVersion' => 1,
|
||||
'minorVersion' => 3
|
||||
'minorVersion' => 4
|
||||
);
|
||||
public static $styles = array(
|
||||
'styles/h5p.css',
|
||||
|
|
|
@ -975,6 +975,13 @@ H5P.setFinished = function (contentId, points, maxPoints) {
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Mimics how php's htmlspecialchars works (the way we use it)
|
||||
*/
|
||||
H5P.htmlSpecialChars = function(string) {
|
||||
return string.toString().replace(/</g, '<').replace(/>/g, '>').replace(/'/g, ''').replace(/"/g, '"');
|
||||
};
|
||||
|
||||
// Add indexOf to browsers that lack them. (IEs)
|
||||
if (!Array.prototype.indexOf) {
|
||||
Array.prototype.indexOf = function (needle) {
|
||||
|
|
Loading…
Reference in New Issue