[Mediawiki-l] $msg argument of SkinCopyrightFooter hook

Nicolas Bock nicolasbock at gmail.com
Mon May 28 17:38:26 UTC 2012


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



More information about the MediaWiki-l mailing list