From 79aa88fddd6c80c280fbb65ccb5e8945e9fa1dfa Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Tue, 7 Sep 2021 17:09:16 +0200 Subject: [PATCH] MDL-71970 h5plib_v124: Add namespace to H5P editor library The joubel/editor is a third-party library. A namespace has been added to avoid collision with other plugins using it (such as mod_hvp). That way, they will be able to have a different version without side effects. --- h5p/h5plib/v124/joubel/editor/h5peditor-ajax.class.php | 6 ++++-- .../v124/joubel/editor/h5peditor-ajax.interface.php | 1 + h5p/h5plib/v124/joubel/editor/h5peditor-file.class.php | 3 +++ .../v124/joubel/editor/h5peditor-storage.interface.php | 2 ++ h5p/h5plib/v124/joubel/editor/h5peditor.class.php | 10 +++++++--- h5p/h5plib/v124/joubel/editor/readme_moodle.txt | 9 ++++++++- 6 files changed, 25 insertions(+), 6 deletions(-) diff --git a/h5p/h5plib/v124/joubel/editor/h5peditor-ajax.class.php b/h5p/h5plib/v124/joubel/editor/h5peditor-ajax.class.php index 51ba355dc97..536399287b0 100644 --- a/h5p/h5plib/v124/joubel/editor/h5peditor-ajax.class.php +++ b/h5p/h5plib/v124/joubel/editor/h5peditor-ajax.class.php @@ -1,5 +1,7 @@ editor->ajaxInterface->validateEditorToken($token); if (!$isValidToken) { - \H5PCore::ajaxError( + H5PCore::ajaxError( $this->core->h5pF->t('Invalid security token.'), 'INVALID_TOKEN' ); diff --git a/h5p/h5plib/v124/joubel/editor/h5peditor-ajax.interface.php b/h5p/h5plib/v124/joubel/editor/h5peditor-ajax.interface.php index d45b2b1bea1..89d42634a92 100644 --- a/h5p/h5plib/v124/joubel/editor/h5peditor-ajax.interface.php +++ b/h5p/h5plib/v124/joubel/editor/h5peditor-ajax.interface.php @@ -1,5 +1,6 @@