Skip to content

Commit

Permalink
MDL-70903 mod_h5p: Fix PHP8.0 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
roland04 committed Apr 20, 2021
1 parent 0fd37bf commit a2a41ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion h5p/h5plib/v124/joubel/editor/h5peditor.class.php
Expand Up @@ -373,7 +373,7 @@ public function findEditorLibraries($machineName, $majorVersion, $minorVersion)
*
* @return array Libraries that was requested
*/
public function getLibraryData($machineName, $majorVersion, $minorVersion, $languageCode, $prefix = '', $fileDir = '', $defaultLanguage) {
public function getLibraryData($machineName, $majorVersion, $minorVersion, $languageCode, $prefix = '', $fileDir = '', $defaultLanguage = '') {
$libraryData = new stdClass();

$library = $this->h5p->loadLibrary($machineName, $majorVersion, $minorVersion);
Expand Down
3 changes: 3 additions & 0 deletions h5p/h5plib/v124/joubel/editor/readme_moodle.txt
Expand Up @@ -23,4 +23,7 @@ Removed:
Added:
* readme_moodle.txt

Changed:
* Updated H5peditor::getLibraryData parameters to fix PHP8.0 warnings. See MDL-70903 for details.

Downloaded version: moodle-1.20.2 release

0 comments on commit a2a41ae

Please sign in to comment.