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
Merge "Special:Allpages replace table with unordered list"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialAllPages.php
diff --git
a/includes/specials/SpecialAllPages.php
b/includes/specials/SpecialAllPages.php
index
04e2f11
..
c8fae68
100644
(file)
--- a/
includes/specials/SpecialAllPages.php
+++ b/
includes/specials/SpecialAllPages.php
@@
-213,32
+213,20
@@
class SpecialAllPages extends IncludableSpecialPage {
);
if ( $res->numRows() > 0 ) {
);
if ( $res->numRows() > 0 ) {
- $out = Xml::openElement( '
table', array( 'class' => 'mw-allpages-table
-chunk' ) );
+ $out = Xml::openElement( '
ul', array( 'class' => 'mw-allpages
-chunk' ) );
while ( ( $n < $this->maxPerPage ) && ( $s = $res->fetchObject() ) ) {
$t = Title::newFromRow( $s );
if ( $t ) {
while ( ( $n < $this->maxPerPage ) && ( $s = $res->fetchObject() ) ) {
$t = Title::newFromRow( $s );
if ( $t ) {
- $link = ( $s->page_is_redirect ? '<div class="allpagesredirect">' : '' ) .
+ $out .= '<li' .
+ ( $s->page_is_redirect ? ' class="allpagesredirect"' : '' ) .
+ '>' .
Linker::link( $t ) .
Linker::link( $t ) .
-
( $s->page_is_redirect ? '</div>' : '' )
;
+
"</li>\n"
;
} else {
} else {
- $
link = '[[' . htmlspecialchars( $s->page_title ) . ']]'
;
+ $
out .= '<li>[[' . htmlspecialchars( $s->page_title ) . "]]</li>\n"
;
}
}
-
- if ( $n % 3 == 0 ) {
- $out .= '<tr>';
- }
-
- $out .= "<td style=\"width:33%\">$link</td>";
- $n++;
- if ( $n % 3 == 0 ) {
- $out .= "</tr>\n";
- }
- }
-
- if ( ( $n % 3 ) != 0 ) {
- $out .= "</tr>\n";
}
}
- $out .= Xml::closeElement( '
table
' );
+ $out .= Xml::closeElement( '
ul
' );
} else {
$out = '';
}
} else {
$out = '';
}