Mispar: Upgrade to a newer version of MediaWiki
Currently, we are running on Mediawiki 1.28
- we use the onPageContentSave hook, which is deprecated as of version 1.35
- we use this hook to get hand of the source code being saved
- we then extract the annotations, assign them unique labels and anchors (for links) and change the content before saving
- instead of the onPageContentSave hook, from 1.35 onwards, the onMultiContentSave hook should be used
- similarly, the onPageContentSaveComplete hook is deprecated from 1.35 onwards, which we also use (the actual saving of the annotations happens there)
- List of all hooks
Edited by vermeul