Tweak variable name to avoid confusion.
authorAndrew Garrett <werdna@users.mediawiki.org>
Wed, 28 Jan 2009 23:55:00 +0000 (23:55 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Wed, 28 Jan 2009 23:55:00 +0000 (23:55 +0000)
includes/Pager.php

index 32bfec5..653b881 100644 (file)
@@ -745,8 +745,8 @@ abstract class TablePager extends IndexPager {
        }
 
        function formatRow( $row ) {
-               $class = $this->getRowClass( $row );
-               $s = "<tr class=\"$class\">\n";
+               $rowClass = $this->getRowClass( $row );
+               $s = "<tr class=\"$rowClass\">\n";
                $fieldNames = $this->getFieldNames();
                $this->mCurrentRow = $row;  # In case formatValue needs to know
                foreach ( $fieldNames as $field => $name ) {