Index: trunk/phase3/includes/Article.php |
— | — | @@ -84,12 +84,12 @@ |
85 | 85 | return $this->mRedirectTarget; |
86 | 86 | # Query the redirect table |
87 | 87 | $dbr = wfGetDB( DB_SLAVE ); |
88 | | - $res = $dbr->select( 'redirect', |
| 88 | + $row = $dbr->selectRow( 'redirect', |
89 | 89 | array('rd_namespace', 'rd_title'), |
90 | | - array('rd_from' => $this->getID()), |
| 90 | + array('rd_from' => $this->getID() ), |
91 | 91 | __METHOD__ |
92 | 92 | ); |
93 | | - if( $row = $dbr->fetchObject($res) ) { |
| 93 | + if( $row ) { |
94 | 94 | return $this->mRedirectTarget = Title::makeTitle($row->rd_namespace, $row->rd_title); |
95 | 95 | } |
96 | 96 | # This page doesn't have an entry in the redirect table |