Index: trunk/phase3/includes/Title.php |
— | — | @@ -2857,12 +2857,13 @@ |
2858 | 2858 | $newid = $nt->getArticleID(); |
2859 | 2859 | $oldid = $this->getArticleID(); |
2860 | 2860 | $latest = $this->getLatestRevID(); |
| 2861 | + |
| 2862 | + $dbw = wfGetDB( DB_MASTER ); |
| 2863 | + |
2861 | 2864 | $rcts = $dbw->timestamp( $nt->getEarliestRevTime() ); |
2862 | 2865 | $newns = $nt->getNamespace(); |
2863 | 2866 | $newdbk = $nt->getDBkey(); |
2864 | 2867 | |
2865 | | - $dbw = wfGetDB( DB_MASTER ); |
2866 | | - |
2867 | 2868 | # Delete the old redirect. We don't save it to history since |
2868 | 2869 | # by definition if we've got here it's rather uninteresting. |
2869 | 2870 | # We have to remove it so that the next step doesn't trigger |