* (bug 31380) Fix style regression on Special:Allmessages
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 5 Oct 2011 18:37:42 +0000 (18:37 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 5 Oct 2011 18:37:42 +0000 (18:37 +0000)
Table cells for customized messages were missing the classes used to style the default & actual text differently. Got lost in r90334: added dir/lang attributes for the language but accidentally left out the classes.

includes/specials/SpecialAllmessages.php

index 35fa9e7..424543a 100644 (file)
@@ -409,12 +409,12 @@ class AllmessagesTablePager extends TablePager {
        }
 
        function getCellAttrs( $field, $value ){
-               if( $field != 'am_title' ) {
-                       return array( 'lang' => $this->langcode, 'dir' => $this->lang->getDir() );
-               } elseif( $this->mCurrentRow->am_customised && $field == 'am_title' ) {
+               if( $this->mCurrentRow->am_customised && $field == 'am_title' ){
                        return array( 'rowspan' => '2', 'class' => $field );
-               } else {
+               } else if( $field == 'am_title' ) {
                        return array( 'class' => $field );
+               } else {
+                       return array( 'lang' => $this->langcode, 'dir' => $this->lang->getDir(), 'class' => $field );
                }
        }