Follow-up to r90265: directionality improvements as part of bug 6100 (under $wgBetter...
[lhc/web/wiklou.git] / includes / specials / SpecialAllmessages.php
index 78e9c04..d65f25f 100644 (file)
@@ -411,7 +411,10 @@ class AllmessagesTablePager extends TablePager {
        }
 
        function getCellAttrs( $field, $value ){
-               if( $this->mCurrentRow->am_customised && $field == 'am_title' ){
+               global $wgBetterDirectionality;
+               if( $field != 'am_title' && $wgBetterDirectionality ) {
+                       return array( 'lang' => $this->langcode, 'dir' => $this->lang->getDir() );
+               } elseif( $this->mCurrentRow->am_customised && $field == 'am_title' ) {
                        return array( 'rowspan' => '2', 'class' => $field );
                } else {
                        return array( 'class' => $field );