From: Brion Vibber Date: Wed, 25 Apr 2007 20:46:02 +0000 (+0000) Subject: * (bug 9649) Fix RTL form alignment for Special:Movepage X-Git-Tag: 1.31.0-rc.0~53228 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=41eb4ddccd68c00e0c52fd1c93434a15be9e0483;p=lhc%2Fweb%2Fwiklou.git * (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 --- 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} -
{$movearticle}:{$oldTitle}{$movearticle}:{$oldTitle}
+


+


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