X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FSpecialAllpages.php;h=67246e447f01cfec3815435018eaa9dd049a2858;hb=2f7946f0bb7463d18d9bca501c4dfe06bcea8295;hp=621a237d13bcfe11d6bd72cc8f6163dee0bd4278;hpb=596f4b09ceee8eee7b5669adb12163c26c9e18f8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 621a237d13..67246e447f 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -1,13 +1,14 @@ -getVal( 'from' ); if( $par ) { indexShowChunk( $par ); - } elseif( isset( $from ) ) { + } elseif( !is_null( $from ) ) { indexShowChunk( $from ); } else { indexShowToplevel(); @@ -111,7 +112,7 @@ LIMIT {$indexMaxperpage}"; # FIXME: Dynamic column widths, backlink to main list, # side links to next and previous $n = 0; - $out = "\n"; + $out = "
\n"; while( $s = wfFetchObject( $res ) ) { $t = Title::makeTitle( 0, $s->cur_title ); if( $t ) { @@ -119,10 +120,13 @@ LIMIT {$indexMaxperpage}"; } else { $link = "[[" . htmlspecialchars( $s->cur_title ) . "]]"; } + if( $n == 0 ) { + $out .= "\n"; + } $out .= ""; $n = ++$n % 3; if( $n == 0 ) { - $out .= "\n"; + $out .= "\n"; } } if( $n != 0 ) {
$link