Index: trunk/phase3/includes/specials/SpecialAllpages.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | /** |
16 | 16 | * Maximum number of pages to show on single index subpage. |
17 | 17 | */ |
18 | | - protected $maxLineCount = 200; |
| 18 | + protected $maxLineCount = 100; |
19 | 19 | |
20 | 20 | /** |
21 | 21 | * Maximum number of chars to show for an entry. |
— | — | @@ -48,7 +48,8 @@ |
49 | 49 | |
50 | 50 | $namespaces = $wgContLang->getNamespaces(); |
51 | 51 | |
52 | | - $wgOut->setPagetitle( ( $namespace > 0 && in_array( $namespace, array_keys( $namespaces) ) ) ? |
| 52 | + $wgOut->setPagetitle( |
| 53 | + ( $namespace > 0 && in_array( $namespace, array_keys( $namespaces) ) ) ? |
53 | 54 | wfMsg( 'allinnamespace', str_replace( '_', ' ', $namespaces[$namespace] ) ) : |
54 | 55 | wfMsg( 'allarticles' ) |
55 | 56 | ); |
— | — | @@ -189,7 +190,7 @@ |
190 | 191 | // Instead, display the first section directly. |
191 | 192 | if( count( $lines ) <= 2 ) { |
192 | 193 | if( !empty($lines) ) { |
193 | | - $this->showChunk( $namespace, $lines[0], $lines[count($lines)-1] ); |
| 194 | + $this->showChunk( $namespace, $from, $to ); |
194 | 195 | } else { |
195 | 196 | $wgOut->addHTML( $this->namespaceForm( $namespace, $from, $to ) ); |
196 | 197 | } |
— | — | @@ -343,7 +344,9 @@ |
344 | 345 | 'page_title', |
345 | 346 | array( 'page_namespace' => $namespace, 'page_title < '.$dbr->addQuotes($from) ), |
346 | 347 | __METHOD__, |
347 | | - array( 'ORDER BY' => 'page_title DESC', 'LIMIT' => $this->maxPerPage, 'OFFSET' => ($this->maxPerPage - 1 ) ) |
| 348 | + array( 'ORDER BY' => 'page_title DESC', |
| 349 | + 'LIMIT' => $this->maxPerPage, 'OFFSET' => ($this->maxPerPage - 1 ) |
| 350 | + ) |
348 | 351 | ); |
349 | 352 | |
350 | 353 | # Get first title of previous complete chunk |