From 4e9dbf609536c0e9f18e7b9615316d75de22df80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 19 Jul 2005 03:08:02 +0000 Subject: [PATCH] * Putting redirects in the allpagesredirect class so that they can be styled differently from normal pages --- includes/SpecialAllpages.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index b25503ee70..a7dae9db22 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -221,7 +221,7 @@ function indexShowChunk( $namespace = NS_MAIN, $from, $including = false ) { $dbr =& wfGetDB( DB_SLAVE ); $res = $dbr->select( 'page', - array( 'page_namespace', 'page_title' ), + array( 'page_namespace', 'page_title', 'page_is_redirect' ), array( 'page_namespace' => $namespace, 'page_title >= ' . $dbr->addQuotes( $fromKey ) @@ -242,7 +242,9 @@ function indexShowChunk( $namespace = NS_MAIN, $from, $including = false ) { while( ($n < $indexMaxperpage) && ($s = $dbr->fetchObject( $res )) ) { $t = Title::makeTitle( $s->page_namespace, $s->page_title ); if( $t ) { - $link = $sk->makeKnownLinkObj( $t, htmlspecialchars( $t->getText() ), false, false ); + $link = ($s->page_is_redirect ? '
' : '' ) . + $sk->makeKnownLinkObj( $t, htmlspecialchars( $t->getText() ), false, false ) . + ($s->page_is_redirect ? '
' : '' ); } else { $link = '[[' . htmlspecialchars( $s->page_title ) . ']]'; } -- 2.20.1