|
@@ 397-406 (lines=10) @@
|
| 394 |
|
// This function should be called even if the result isn't used, it has side-effects |
| 395 |
|
$countmsg = $this->getCountMessage( $rescnt, $dbcnt, 'subcat' ); |
| 396 |
|
|
| 397 |
|
if ( $rescnt > 0 ) { |
| 398 |
|
# Showing subcategories |
| 399 |
|
$r .= "<div id=\"mw-subcategories\">\n"; |
| 400 |
|
$r .= '<h2>' . $this->msg( 'subcategories' )->parse() . "</h2>\n"; |
| 401 |
|
$r .= $countmsg; |
| 402 |
|
$r .= $this->getSectionPagingLinks( 'subcat' ); |
| 403 |
|
$r .= $this->formatList( $this->children, $this->children_start_char ); |
| 404 |
|
$r .= $this->getSectionPagingLinks( 'subcat' ); |
| 405 |
|
$r .= "\n</div>"; |
| 406 |
|
} |
| 407 |
|
return $r; |
| 408 |
|
} |
| 409 |
|
|
|
@@ 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' )->rawParams( $name )->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 |
|
|