From 7361fdf3fe60246a33ae2b79ef6ac5b16d4cdbad Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 24 Nov 2007 08:20:28 +0000 Subject: [PATCH] *If you are going to check $s->page_namespace, at least select it first ;) (Nikerabbit caught this) --- includes/Linker.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/Linker.php b/includes/Linker.php index b965fdced7..c074853591 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -254,10 +254,9 @@ class Linker { $dbr = wfGetDB( DB_SLAVE ); $s = $dbr->selectRow( array( 'page' ), - array( 'page_len', - 'page_is_redirect' ), + array( 'page_len', 'page_is_redirect', 'page_namespace' ), array( 'page_id' => $aid ), __METHOD__ ) ; - $colour=$this->getLinkColour( $s, $threshold ); + $colour = $this->getLinkColour( $s, $threshold ); } } $retVal = $this->makeColouredLinkObj( $nt, $colour, $text, $query, $trail, $prefix ); -- 2.20.1