From: Aaron Schulz Date: Sat, 24 Nov 2007 08:20:28 +0000 (+0000) Subject: *If you are going to check $s->page_namespace, at least select it first ;) (Nikerabbi... X-Git-Tag: 1.31.0-rc.0~50733 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=7361fdf3fe60246a33ae2b79ef6ac5b16d4cdbad;p=lhc%2Fweb%2Fwiklou.git *If you are going to check $s->page_namespace, at least select it first ;) (Nikerabbit caught this) --- 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 );