Correct alignment for RevisionDelete button
authorRobin Pepermans <robin@users.mediawiki.org>
Sat, 25 Jun 2011 12:28:42 +0000 (12:28 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Sat, 25 Jun 2011 12:28:42 +0000 (12:28 +0000)
includes/HistoryPage.php

index baff3aa..ff91485 100644 (file)
@@ -409,9 +409,8 @@ class HistoryPager extends ReverseChronologicalPager {
        }
 
        private function getRevisionButton( $name, $msg ) {
-               global $wgContLang;
                $this->preventClickjacking();
-               $float = $wgContLang->alignEnd();
+               $float = wfUILang()->alignEnd();
                # Note bug #20966, <button> is non-standard in IE<8
                $element = Html::element( 'button',
                        array(