Index: trunk/extensions/CategoryTree/CategoryTreeFunctions.php |
— | — | @@ -593,6 +593,8 @@ |
594 | 594 | $attr = array( 'class' => 'CategoryTreeBullet' ); |
595 | 595 | |
596 | 596 | # Get counts, with conversion to integer so === works |
| 597 | + # Note: $pageCount is the total number of cat members, |
| 598 | + # not the count of how many members are normal pages. |
597 | 599 | $pageCount = $cat ? intval( $cat->getPageCount() ) : 0; |
598 | 600 | $subcatCount = $cat ? intval( $cat->getSubcatCount() ) : 0; |
599 | 601 | $fileCount = $cat ? intval( $cat->getFileCount() ) : 0; |
— | — | @@ -664,7 +666,7 @@ |
665 | 667 | $memberNums[] = wfMessage( 'categorytree-num-categories', $wgLang->formatNum( $subcatCount ) )->text(); |
666 | 668 | } |
667 | 669 | if ( $pageCount ) { |
668 | | - $memberNums[] = wfMessage( 'categorytree-num-pages', $wgLang->formatNum( $pageCount ) )->text(); |
| 670 | + $memberNums[] = wfMessage( 'categorytree-num-pages', $wgLang->formatNum( $pages ) )->text(); |
669 | 671 | } |
670 | 672 | if ( $fileCount ) { |
671 | 673 | $memberNums[] = wfMessage( 'categorytree-num-files', $wgLang->formatNum( $fileCount ) )->text(); |