From 4118bb2ba70d34cdde88e9c7fc0ead72e8bc65b3 Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Fri, 16 Jan 2009 23:04:13 +0000 Subject: [PATCH] allow extensions that use 'UserCreateForm' to add checkboxes into the signup form to define messages containing HTML. this can be very useful and necessary; think of something like a checkbox "I have read the site's terms of use", it would obviously need to link to the terms of use page. using msgWiki() instead of msgHtml() here would probably be safer, but msgWiki() likes to mess things up by introducing

tags and this is meant for extensions, so it won't cause any more risks than the current existing system messages that allow HTML inclusion. --- RELEASE-NOTES | 3 +++ includes/templates/Userlogin.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3d4db25faf..9cb11eecbc 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -34,6 +34,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 17002) Add &minor= and &summary= as parameters in the url when editing, to automatically add a summary or a minor edit. * (bug 16852) padleft and padright now accept multiletter pad characters +* When using 'UserCreateForm' hook to add new checkboxes into Special:UserLogin/signup, + the messages can now contain HTML to allow hyperlinking to the site's Terms + of Service page, for example === Bug fixes in 1.15 === * (bug 16968) Special:Upload no longer throws useless warnings. diff --git a/includes/templates/Userlogin.php b/includes/templates/Userlogin.php index c4a60b6cbe..1caa7ea210 100644 --- a/includes/templates/Userlogin.php +++ b/includes/templates/Userlogin.php @@ -242,7 +242,7 @@ class UsercreateTemplate extends QuickTemplate { if ( $inputItem['type'] == 'checkbox' && !empty( $inputItem['msg'] ) ) { ?> msgHtml( $inputItem['msg'] ) ?> -- 2.20.1