Jump to content

Extension talk:Header Footer

Add topic
From mediawiki.org
[edit]

Instead of the correct page name, it outputs Special:Badtitle/Message. This worked great in mw 1.39. ~2025-29547-19 (talk) 12:47, 21 October 2025 (UTC)Reply

I think I found the problem: in src/HookHandler/AddHeaderFooter.php instead of wfMessage( ... ) we must use:
$context = RequestContext::getMain();
$msg = $context->msg($msgId);
How can I send a pull request? ~2025-29547-19 (talk) 19:08, 21 October 2025 (UTC)Reply
Indeed, I reproduced the issue with MW 1.45.0-alpha (1e134ef43f5d5) and HeaderFooter master (aa0ede5), and indeed your fix works.
I guess you can send a pull request on Gerrit in this repo: https://gerrit.wikimedia.org/r/q/project:mediawiki/extensions/HeaderFooter (ping @Osnard since this extension is in Bluespice).
Yes, if you provide a patch, I'll be happy to review and merge it. Osnard (talk) 14:22, 24 November 2025 (UTC)Reply
I searched if the context was available in one of the 3 provided variables in this hook ContentAlterParserOutput (Content, Title, ParserOutput) but didn’t find one.
This is caused by this commit in 1.44+ and this Phabricator task for FlaggedRevs is about a similar issue. ~ Seb35 [^_^] 16:57, 18 November 2025 (UTC)Reply