Index: trunk/phase3/includes/SpecialAllpages.php |
— | — | @@ -221,7 +221,7 @@ |
222 | 222 | |
223 | 223 | $dbr =& wfGetDB( DB_SLAVE ); |
224 | 224 | $res = $dbr->select( 'page', |
225 | | - array( 'page_namespace', 'page_title' ), |
| 225 | + array( 'page_namespace', 'page_title', 'page_is_redirect' ), |
226 | 226 | array( |
227 | 227 | 'page_namespace' => $namespace, |
228 | 228 | 'page_title >= ' . $dbr->addQuotes( $fromKey ) |
— | — | @@ -242,7 +242,9 @@ |
243 | 243 | while( ($n < $indexMaxperpage) && ($s = $dbr->fetchObject( $res )) ) { |
244 | 244 | $t = Title::makeTitle( $s->page_namespace, $s->page_title ); |
245 | 245 | if( $t ) { |
246 | | - $link = $sk->makeKnownLinkObj( $t, htmlspecialchars( $t->getText() ), false, false ); |
| 246 | + $link = ($s->page_is_redirect ? '<div class="allpagesredirect">' : '' ) . |
| 247 | + $sk->makeKnownLinkObj( $t, htmlspecialchars( $t->getText() ), false, false ) . |
| 248 | + ($s->page_is_redirect ? '</div>' : '' ); |
247 | 249 | } else { |
248 | 250 | $link = '[[' . htmlspecialchars( $s->page_title ) . ']]'; |
249 | 251 | } |