Index: trunk/phase3/maintenance/refreshLinks.php |
— | — | @@ -184,17 +184,15 @@ |
185 | 185 | __METHOD__ ); |
186 | 186 | return; |
187 | 187 | } |
188 | | - $article = new Article( $title ); |
189 | 188 | |
190 | | - $rt = $article->followRedirect(); |
| 189 | + $page = WikiPage::factory( $title ); |
| 190 | + $rt = $page->getRedirectTarget(); |
191 | 191 | |
192 | | - if ( !$rt || !is_object( $rt ) ) { |
| 192 | + if ( $rt === null ) { |
193 | 193 | // $title is not a redirect |
194 | 194 | // Delete any redirect table entry for it |
195 | 195 | $dbw->delete( 'redirect', array( 'rd_from' => $id ), |
196 | 196 | __METHOD__ ); |
197 | | - } else { |
198 | | - $article->updateRedirectOn( $dbw, $rt ); |
199 | 197 | } |
200 | 198 | } |
201 | 199 | |