|
@@ 412-421 (lines=10) @@
|
| 409 |
|
// This function should be called even if the result isn't used, it has side-effects |
| 410 |
|
$countmsg = $this->getCountMessage( $rescnt, $dbcnt, 'subcat' ); |
| 411 |
|
|
| 412 |
|
if ( $rescnt > 0 ) { |
| 413 |
|
# Showing subcategories |
| 414 |
|
$r .= "<div id=\"mw-subcategories\">\n"; |
| 415 |
|
$r .= '<h2>' . $this->msg( 'subcategories' )->parse() . "</h2>\n"; |
| 416 |
|
$r .= $countmsg; |
| 417 |
|
$r .= $this->getSectionPagingLinks( 'subcat' ); |
| 418 |
|
$r .= $this->formatList( $this->children, $this->children_start_char ); |
| 419 |
|
$r .= $this->getSectionPagingLinks( 'subcat' ); |
| 420 |
|
$r .= "\n</div>"; |
| 421 |
|
} |
| 422 |
|
return $r; |
| 423 |
|
} |
| 424 |
|
|
|
@@ 443-451 (lines=9) @@
|
| 440 |
|
// This function should be called even if the result isn't used, it has side-effects |
| 441 |
|
$countmsg = $this->getCountMessage( $rescnt, $dbcnt, 'article' ); |
| 442 |
|
|
| 443 |
|
if ( $rescnt > 0 ) { |
| 444 |
|
$r = "<div id=\"mw-pages\">\n"; |
| 445 |
|
$r .= '<h2>' . $this->msg( 'category_header', $ti )->parse() . "</h2>\n"; |
| 446 |
|
$r .= $countmsg; |
| 447 |
|
$r .= $this->getSectionPagingLinks( 'page' ); |
| 448 |
|
$r .= $this->formatList( $this->articles, $this->articles_start_char ); |
| 449 |
|
$r .= $this->getSectionPagingLinks( 'page' ); |
| 450 |
|
$r .= "\n</div>"; |
| 451 |
|
} |
| 452 |
|
return $r; |
| 453 |
|
} |
| 454 |
|
|