(bug 31757) Add a word-separator between help-messages in HTMLForm
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 21 Apr 2012 09:55:40 +0000 (11:55 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 21 Apr 2012 09:55:40 +0000 (11:55 +0200)
Change-Id: Ie4dbfb16e195dabd6abf0634b21c7867ed584920

RELEASE-NOTES-1.20
includes/HTMLForm.php

index 9722f48..ebf30ca 100644 (file)
@@ -87,6 +87,7 @@ production.
 * (bug 18704) Add a unique CSS class or ID to the tagfilter table row at RecentChanges
 * (bug 33564) transwiki import sometimes result in invalid title.
 * (bug 35572) Blocks appear to succeed even if query fails due to wrong DB structure
+* (bug 31757) Add a word-separator between help-messages in HTMLForm
 
 === API changes in 1.20 ===
 * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
index 505a26f..029ed05 100644 (file)
@@ -1096,6 +1096,11 @@ abstract class HTMLFormField {
                                $msg = wfMessage( array_shift( $helpMessage ), $helpMessage );
 
                                if( $msg->exists() ) {
+                                       if( is_null( $helptext ) ) {
+                                               $helptext = '';
+                                       } else {
+                                               $helptext .= wfMessage( 'word-separator' )->escaped(); // some space
+                                       }
                                        $helptext .= $msg->parse(); // Append message
                                }
                        }