Hi,
I am running into a problem with setting the $msg argument of the SkinCopyrightFooter hook function to some HTML text (mediawiki 1.19.0). For instance, doing this:
function CopyrightFooter ( $title, $type, &$msg, &$link ) { $msg = 'Content is available under the <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License 1.3 or later</a>'; return true; } $wgHooks['SkinCopyrightFooter'][] = 'CopyrightFooter';
Renders like this:
<Content is available under the <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License 1.3 or later</a>>
In other words, the html gets escaped somehow and does not end up being rendered as intended. Did I use the $msg argument incorrectly?
Thanks,
nick
On Mon, May 28, 2012 at 1:38 PM, Nicolas Bock nicolasbock@gmail.com wrote:
I am running into a problem with setting the $msg argument of the SkinCopyrightFooter hook function to some HTML text (mediawiki 1.19.0). For instance, doing this:
[...]
In other words, the html gets escaped somehow and does not end up being rendered as intended. Did I use the $msg argument incorrectly?
See https://www.mediawiki.org/wiki/Manual:System_message and take a look at how it's used on the WMF cluster: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fextensions%2FWikimediaMe...
-Jeremy
Hi Jeremy,
On Mon, May 28, 2012 at 12:42 PM, Jeremy Baron jeremy@tuxmachine.com wrote:
On Mon, May 28, 2012 at 1:38 PM, Nicolas Bock nicolasbock@gmail.com wrote:
I am running into a problem with setting the $msg argument of the SkinCopyrightFooter hook function to some HTML text (mediawiki 1.19.0). For instance, doing this:
[...]
In other words, the html gets escaped somehow and does not end up being rendered as intended. Did I use the $msg argument incorrectly?
See https://www.mediawiki.org/wiki/Manual:System_message and take a look at how it's used on the WMF cluster: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fextensions%2FWikimediaMe...
Thanks, that did it. Now it works :)
nick
mediawiki-l@lists.wikimedia.org