Index: branches/REL1_3/phase3/RELEASE-NOTES |
— | — | @@ -4,8 +4,8 @@ |
5 | 5 | |
6 | 6 | Changes from 1.3.0: |
7 | 7 | * Watchlist parameters now work with register_globals off |
| 8 | +* Special:Allpages display is more sensible on smaller wikis |
8 | 9 | |
9 | | - |
10 | 10 | == Version 1.3.0, 2004-08-11 == |
11 | 11 | |
12 | 12 | Security reminder: MediaWiki does not require PHP's register_globals |
Index: branches/REL1_3/phase3/includes/SpecialAllpages.php |
— | — | @@ -45,6 +45,13 @@ |
46 | 46 | $count = $s->count; |
47 | 47 | $sections = ceil( $count / $indexMaxperpage ); |
48 | 48 | |
| 49 | + if ( $sections < 3 ) { |
| 50 | + # If there are only two or less sections, don't even display them. |
| 51 | + # Instead, display the first section directly. |
| 52 | + indexShowChunk( '' ); |
| 53 | + return; |
| 54 | + } |
| 55 | + |
49 | 56 | $sql = "SELECT cur_title $fromwhere $order LIMIT 1"; |
50 | 57 | $res = wfQuery( $sql, DB_READ, $fname ); |
51 | 58 | $s = wfFetchObject( $res ); |