Manual talk:Hooks/SkinCopyrightFooter
Add topicAppearance
Latest comment: 12 years ago by Nicolasbock in topic $msg takes HTML formatted argument broken?
$msg takes HTML formatted argument broken?
[edit]In 1.19.0 there seems to be a problem with setting $msg to some HTML text. 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>>
Nicolasbock (talk) 22:39, 25 May 2012 (UTC)
- Reply from mailarchive:mediawiki-l/2012-May/039327.html:
- See 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%2FWikimediaMessages.git&a=search&h=044cfed6000ab09bc732c237d20ce34415af940c&st=grep&s=%27wikimedia-copyright%27%7CefWikimediaSkinCopyrightFooter&sr=1
- Jeremyb (talk) 18:57, 28 May 2012 (UTC)
Thank you Jeremy, that did it! Nicolasbock (talk) 22:26, 28 May 2012 (UTC)