dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make doBlockLevels last parser stage again, and fix missing paragraphs from
[lhc/web/wiklou.git]
/
includes
/
SpecialAllpages.php
diff --git
a/includes/SpecialAllpages.php
b/includes/SpecialAllpages.php
index
621a237
..
67246e4
100644
(file)
--- a/
includes/SpecialAllpages.php
+++ b/
includes/SpecialAllpages.php
@@
-1,13
+1,14
@@
-<?
+<?
php
function wfSpecialAllpages( $par=NULL )
{
function wfSpecialAllpages( $par=NULL )
{
- global $
from, $indexMaxperpage
;
+ global $
indexMaxperpage, $wgRequest
;
$indexMaxperpage = 480;
$indexMaxperpage = 480;
+ $from = $wgRequest->getVal( 'from' );
if( $par ) {
indexShowChunk( $par );
if( $par ) {
indexShowChunk( $par );
- } elseif(
isset
( $from ) ) {
+ } elseif(
!is_null
( $from ) ) {
indexShowChunk( $from );
} else {
indexShowToplevel();
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;
# FIXME: Dynamic column widths, backlink to main list,
# side links to next and previous
$n = 0;
- $out = "<table border=\"0\">\n
<tr>
";
+ $out = "<table border=\"0\">\n";
while( $s = wfFetchObject( $res ) ) {
$t = Title::makeTitle( 0, $s->cur_title );
if( $t ) {
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 ) . "]]";
}
} else {
$link = "[[" . htmlspecialchars( $s->cur_title ) . "]]";
}
+ if( $n == 0 ) {
+ $out .= "<tr>\n";
+ }
$out .= "<td width=\"33%\">$link</td>";
$n = ++$n % 3;
if( $n == 0 ) {
$out .= "<td width=\"33%\">$link</td>";
$n = ++$n % 3;
if( $n == 0 ) {
- $out .= "</tr>\n
<tr>
";
+ $out .= "</tr>\n";
}
}
if( $n != 0 ) {
}
}
if( $n != 0 ) {