Wikimedia
Fix two issues in MediaWiki's import code
I'm going to reduce this task to simply relate to issue 1. I will move issue 2 to a new task.
Your task is to fix the following issue.
Add a ImportLogInterwikiLink
hook (PHP)
First, you need to add a hook to MediaWiki's import process to allow sites to alter the wikilink that is output in the log entry and edit summary after a transwiki import. The hook should be called ImportLogInterwikiLink
, and the hook function will be passed the interwiki prefix and page title. I'll let you figure out where in the code the call to Hooks::run
needs to occur. Don't forget to document the hook in docs/hooks.txt
(that file also contains useful info about hooks).
Task tags
Students who completed this task
Georggi