From 41eb4ddccd68c00e0c52fd1c93434a15be9e0483 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 25 Apr 2007 20:46:02 +0000 Subject: [PATCH] * (bug 9649) Fix RTL form alignment for Special:Movepage Ideally many of these should be using $wgLang rather than $wgContLang, perhaps, but sticking with $wgContLang to match the rest of the UI layout --- RELEASE-NOTES | 1 + includes/SpecialMovepage.php | 27 +++++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f77ad24db6..a2f1db7143 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -349,6 +349,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 9585) Fix regression in tidy usage in Special:Undelete previews * (bug 3826) Normalize some invalid cookie name characters when setting up $wgCookiePrefix. Completes application of patch by Anders Kaseorg. +* (bug 9649) Fix RTL form alignment for Special:Movepage == Maintenance == diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index 062a68aea8..d8f0187447 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -66,7 +66,10 @@ class MovePageForm { } function showForm( $err ) { - global $wgOut, $wgUser; + global $wgOut, $wgUser, $wgContLang; + + $start = $wgContLang->isRTL() ? 'right' : 'left'; + $end = $wgContLang->isRTL() ? 'left' : 'right'; $wgOut->setPagetitle( wfMsg( 'movepage' ) ); @@ -106,10 +109,10 @@ class MovePageForm { $submitVar = 'wpDeleteAndMove'; $confirm = " - + - + "; $err = ''; } else { @@ -146,19 +149,19 @@ class MovePageForm {
- - + + - - + - - + " ); @@ -166,7 +169,7 @@ class MovePageForm { if ( $considerTalk ) { $wgOut->addHTML( " - @@ -175,7 +178,7 @@ class MovePageForm { $watchChecked = $this->watch || $wgUser->getBoolOption( 'watchmoves' ) || $ot->userIsWatching(); $watch = ''; - $watch .= ''; + $watch .= "'; $watch .= ''; $watch .= ''; $wgOut->addHtml( $watch ); @@ -184,7 +187,7 @@ class MovePageForm { {$confirm} - -- 2.20.1
{$movearticle}:{$oldTitle}{$movearticle}:{$oldTitle}
+


+


+
' . Xml::check( 'wpWatch', $watchChecked, array( 'id' => 'watch' ) ) . '" . Xml::check( 'wpWatch', $watchChecked, array( 'id' => 'watch' ) ) . '' . Xml::label( wfMsg( 'move-watch' ), 'watch' ) . '
  +