Last modified: 2011-01-09 12:48:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27506, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25506 - wfMsgWikiHtml() / wfMsgExt( 'parse' ) / wfMsgExt( 'parseinline' ) cannot be used inside tag hooks.
wfMsgWikiHtml() / wfMsgExt( 'parse' ) / wfMsgExt( 'parseinline' ) cannot be u...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: UNIQ
  Show dependency treegraph
 
Reported: 2010-10-12 23:09 UTC by Platonides
Modified: 2011-01-09 12:48 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Extension test case bug25506.php (300 bytes, text/plain)
2010-10-12 23:10 UTC, Platonides
Details

Description Platonides 2010-10-12 23:09:42 UTC
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.
Comment 1 Platonides 2010-10-12 23:10:52 UTC
Created attachment 7729 [details]
Extension test case bug25506.php

Test with:

== Hello ==

<bug25506></bug25506>
Comment 2 Bawolff (Brian Wolff) 2010-10-13 00:55:46 UTC
Related to (or possibly depends on) bug 17329
Comment 3 Niklas Laxström 2011-01-09 12:48:02 UTC
Check was added in r79892 which tells the correct way to do it while bug 17329 is open.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links