From 8b9389852d8c5d303cbb9c7fa4a28fd602b6bde9 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Fri, 2 Oct 2009 12:18:43 +0000 Subject: [PATCH] * Bug 20944: Align revision delete button left for RTL wikis. * Add a class to the button --- includes/HistoryPage.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/HistoryPage.php b/includes/HistoryPage.php index 86bd39ea26..a7bec6d1b8 100644 --- a/includes/HistoryPage.php +++ b/includes/HistoryPage.php @@ -340,7 +340,7 @@ class HistoryPager extends ReverseChronologicalPager { * @return string HTML output */ function getStartBody() { - global $wgScript, $wgEnableHtmlDiff, $wgUser, $wgOut; + global $wgScript, $wgEnableHtmlDiff, $wgUser, $wgOut, $wgContLang; $this->lastRow = false; $this->counter = 1; $this->oldIdChecked = 0; @@ -352,12 +352,14 @@ class HistoryPager extends ReverseChronologicalPager { $this->buttons = '
'; if( $wgUser->isAllowed('deletedhistory') ) { + $float = $wgContLang->isRTL() ? 'left' : 'right'; $this->buttons .= Xml::element( 'button', array( 'type' => 'submit', 'name' => 'action', 'value' => 'revisiondelete', - 'style' => 'float: right', + 'style' => "float: $float;", + 'class' => 'mw-history-revisiondelete-button', ), wfMsg( 'showhideselectedversions' ) ) . "\n"; -- 2.20.1