From 20e352bfa25e563a3c9d264b6cdbae97f8bf6e0b Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 20 May 2006 08:07:16 +0000 Subject: [PATCH] Fix #6015: dd spacing in the boxes "edit is minor" and "watch this" Patch by Rotem Liss --- RELEASE-NOTES | 1 + includes/EditPage.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8f775fe5f7..69be18e775 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -301,6 +301,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 6017) Update list of bookstores in German localisation files * (bug 5187) Allow programmatically bypassing username validation, for scripts * (bug 6025) SpecialImport: wrong message when no file selected +* (bug 6015) EditPage: add spacing in the boxes "edit is minor" and "watch this" == Compatibility == diff --git a/includes/EditPage.php b/includes/EditPage.php index 2cd38d7e07..d775cabbe1 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -893,8 +893,8 @@ class EditPage { if ( $wgUser->isAllowed('minoredit') ) { $minoredithtml = "minoredit?" checked='checked'":""). - " accesskey='".wfMsg('accesskey-minoredit')."' id='wpMinoredit' />". - ""; + " accesskey='".wfMsg('accesskey-minoredit')."' id='wpMinoredit' />\n". + "\n"; } $watchhtml = ''; @@ -902,9 +902,9 @@ class EditPage { if ( $wgUser->isLoggedIn() ) { $watchhtml = "watchthis?" checked='checked'":""). - " accesskey=\"".htmlspecialchars(wfMsg('accesskey-watch'))."\" id='wpWatchthis' />". + " accesskey=\"".htmlspecialchars(wfMsg('accesskey-watch'))."\" id='wpWatchthis' />\n". ""; + htmlspecialchars(wfMsg('tooltip-watch'))."\">{$watchthis}\n"; } $checkboxhtml = $minoredithtml . $watchhtml; @@ -927,11 +927,11 @@ class EditPage { # Otherwise, show a summary field at the bottom $summarytext = htmlspecialchars( $wgContLang->recodeForEdit( $this->summary ) ); # FIXME if( $this->section == 'new' ) { - $commentsubject="

"; + $commentsubject="\n
\n
"; $editsummary = ''; } else { $commentsubject = ''; - $editsummary="

"; + $editsummary="\n
\n
"; } # Set focus to the edit box on load, except on preview or diff, where it would interfere with the display @@ -1066,8 +1066,8 @@ END {$safemodehtml} "); - $wgOut->addHTML(" -
+ $wgOut->addHTML( +"
{$buttons['save']} {$buttons['preview']} {$buttons['live']} -- 2.20.1