v1.0.2 — generate_audio fatal fix + Backup/Restore API
Fixed
- Fatal in the
generate_audioad hoc task. Six global Moodle functions incontent_extractor(file_rewrite_pluginfile_urls,get_coursemodule_from_id,format_string,html_to_text,get_string,get_string_manager) were called unqualified from inside thelocal_aireader\managernamespace, 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_pluginclasses (backup/moodle2/) carry the per-resource narration overrides (local_aireader_override, both activity-level and per-chapter) with a backed-upmod_page/mod_bookactivity. Restore is deferred toafter_restore_module()sobook_chapterid mappings exist before chapter-level overrides are remapped; stale chapter overrides are skipped,usermodifiedis 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, andamd/src/player.js(the latter also gains a proper@module/@copyright/@licensedocblock) for plugin-directory submission.
Full changelog: v1.0.0...v1.0.2