Index: trunk/extensions/WikimediaMaintenance/rL.php |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | * @param $id int The page_id of the redirect |
165 | 165 | */ |
166 | 166 | private function fixRedirect( $id ){ |
167 | | - global $wgTitle, $wgArticle; |
| 167 | + global $wgTitle; |
168 | 168 | |
169 | 169 | $wgTitle = Title::newFromID( $id ); |
170 | 170 | $dbw = wfGetDB( DB_MASTER ); |
— | — | @@ -175,9 +175,9 @@ |
176 | 176 | __METHOD__ ); |
177 | 177 | return; |
178 | 178 | } |
179 | | - $wgArticle = new Article($wgTitle); |
| 179 | + $article = new Article($wgTitle); |
180 | 180 | |
181 | | - $rt = $wgArticle->followRedirect(); |
| 181 | + $rt = $article->followRedirect(); |
182 | 182 | |
183 | 183 | if($rt == false || !is_object($rt)) { |
184 | 184 | // $wgTitle is not a redirect |
— | — | @@ -185,7 +185,7 @@ |
186 | 186 | $dbw->delete( 'redirect', array( 'rd_from' => $id ), |
187 | 187 | __METHOD__ ); |
188 | 188 | } else { |
189 | | - $wgArticle->updateRedirectOn($dbw,$rt); |
| 189 | + $article->updateRedirectOn($dbw,$rt); |
190 | 190 | } |
191 | 191 | } |
192 | 192 | |