Index: trunk/phase3/includes/CategoryPage.php |
— | — | @@ -102,7 +102,7 @@ |
103 | 103 | * |
104 | 104 | * @return string HTML output |
105 | 105 | */ |
106 | | - private function getHTML() { |
| 106 | + function getHTML() { |
107 | 107 | global $wgOut, $wgCategoryMagicGallery, $wgContLang; |
108 | 108 | wfProfileIn( __METHOD__ ); |
109 | 109 | |
— | — | @@ -418,7 +418,7 @@ |
419 | 419 | * @param $cutoff Int |
420 | 420 | * @return String |
421 | 421 | */ |
422 | | - private function formatList( $articles, $articles_start_char, $cutoff = 6 ) { |
| 422 | + function formatList( $articles, $articles_start_char, $cutoff = 6 ) { |
423 | 423 | if ( count ( $articles ) > $cutoff ) { |
424 | 424 | return self::columnList( $articles, $articles_start_char ); |
425 | 425 | } elseif ( count( $articles ) > 0 ) { |
— | — | @@ -442,7 +442,7 @@ |
443 | 443 | * @param $articles_start_char Array |
444 | 444 | * @return String |
445 | 445 | */ |
446 | | - private static function columnList( $articles, $articles_start_char ) { |
| 446 | + static function columnList( $articles, $articles_start_char ) { |
447 | 447 | $columns = array_combine( $articles, $articles_start_char ); |
448 | 448 | # Split into three columns |
449 | 449 | $columns = array_chunk( $columns, ceil( count( $columns ) / 3 ), true /* preserve keys */ ); |
— | — | @@ -493,7 +493,7 @@ |
494 | 494 | * @param $articles_start_char Array |
495 | 495 | * @return String |
496 | 496 | */ |
497 | | - private static function shortList( $articles, $articles_start_char ) { |
| 497 | + static function shortList( $articles, $articles_start_char ) { |
498 | 498 | $r = '<h3>' . htmlspecialchars( $articles_start_char[0] ) . "</h3>\n"; |
499 | 499 | $r .= '<ul><li>' . $articles[0] . '</li>'; |
500 | 500 | for ( $index = 1; $index < count( $articles ); $index++ ) |