Skip to content

v1.0.2 — generate_audio fatal fix + Backup/Restore API

Choose a tag to compare

@dta121 dta121 released this 29 May 11:06
· 21 commits to main since this release

Fixed

  • Fatal in the generate_audio ad hoc task. Six global Moodle functions in content_extractor (file_rewrite_pluginfile_urls, get_coursemodule_from_id, format_string, html_to_text, get_string, get_string_manager) were called unqualified from inside the local_aireader\manager namespace, so PHP resolved them as undefined namespaced functions and every generation failed with Call to undefined function local_aireader\manager\file_rewrite_pluginfile_urls(). All are now fully qualified with a leading \.

Added

  • Backup / Restore API support. New module-level backup_local_plugin / restore_local_plugin classes (backup/moodle2/) carry the per-resource narration overrides (local_aireader_override, both activity-level and per-chapter) with a backed-up mod_page / mod_book activity. Restore is deferred to after_restore_module() so book_chapter id mappings exist before chapter-level overrides are remapped; stale chapter overrides are skipped, usermodified is remapped when users are included, and existing (cmid, chapterid) rows are not duplicated.

Packaging

  • Added the standard Moodle GPL boilerplate header to templates/manager_offline.mustache, templates/player.mustache, and amd/src/player.js (the latter also gains a proper @module/@copyright/@license docblock) for plugin-directory submission.

Full changelog: v1.0.0...v1.0.2