Page MenuHomePhabricator

wfMsgWikiHtml() / wfMsgExt( 'parse' ) / wfMsgExt( 'parseinline' ) cannot be used inside tag hooks.
Closed, ResolvedPublic


Calling wfMsgWikiHtml() / wfMsgExt( 'parse' ) / wfMsgExt( 'parseinline' ) inside a tag hook exposes the UNIQ for the edit sections.

They call $wgOut->parse() which in turn use $wgParser, which is the same as the parent parser, whose state gets reset.

Version: 1.17.x
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:17 PM
bzimport set Reference to bz25506.
bzimport added a subscriber: Unknown Object (MLST).

Extension test case bug25506.php

Test with:




Related to (or possibly depends on) bug 17329

Check was added in r79892 which tells the correct way to do it while bug 17329 is open.

Paladox set Security to None.Jun 7 2015, 10:09 AM