From: Raimond Spekking Date: Fri, 2 Oct 2009 12:18:43 +0000 (+0000) Subject: * Bug 20944: Align revision delete button left for RTL wikis. X-Git-Tag: 1.31.0-rc.0~39410 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=8b9389852d8c5d303cbb9c7fa4a28fd602b6bde9;p=lhc%2Fweb%2Fwiklou.git * Bug 20944: Align revision delete button left for RTL wikis. * Add a class to the button --- 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";