Manual talk:Hooks/OutputPageBeforeHTML
Add topicAppearance
Latest comment: 13 years ago by 85.20.218.75 in topic Problem with wfMsg
500 Server Error
[edit]When attempting to add text to $wgOut or parameter 1, an infinite loop is created. I guess that's why there's a disclaimer on the article page warning us to use at our own risk. But the second parameter is up for grabs. -- Egingell 12:10, 16 August 2007 (UTC)
Â
[edit]It seems as if the first parameter is an OutputPage object rather than a ParserOutput object. (at least in version 1.6.3)
Simple Example
[edit]A simple example for using this hook is found in Extension:PatchOutput.
Problem with wfMsg
[edit]In mediawiki 1.15.5, in the function called by the hook, the function wfMsg doesn't work for registered users: a call to wfMsg( 'article-contributors-text' )
returns:
- the text defined in the i18n file for unregistered users
<article-contributors-text>
for registered users
What is the reason of this behaviour? 85.20.218.75 06:35, 10 July 2011 (UTC)