Index: trunk/phase3/maintenance/refreshLinks.php |
— | — | @@ -122,10 +122,10 @@ |
123 | 123 | $this->fixLinksFromArticle( $row->page_id ); |
124 | 124 | } |
125 | 125 | } else { |
126 | | - $this->output( "Refreshing $what table.\n" ); |
127 | 126 | if ( !$end ) { |
128 | 127 | $end = $dbr->selectField( 'page', 'max(page_id)', false ); |
129 | 128 | } |
| 129 | + $this->output( "Refreshing redirects table.\n" ); |
130 | 130 | $this->output( "Starting from page_id $start of $end.\n" ); |
131 | 131 | |
132 | 132 | for ($id = $start; $id <= $end; $id++) { |
— | — | @@ -134,10 +134,21 @@ |
135 | 135 | $this->output( "$id\n" ); |
136 | 136 | wfWaitForSlaves( $maxLag ); |
137 | 137 | } |
138 | | - if($redirectsOnly) |
139 | | - $this->fixRedirect( $id ); |
140 | | - else |
| 138 | + $this->fixRedirect( $id ); |
| 139 | + } |
| 140 | + |
| 141 | + if(!$redirectsOnly) { |
| 142 | + $this->output( "Refreshing links table.\n" ); |
| 143 | + $this->output( "Starting from page_id $start of $end.\n" ); |
| 144 | + |
| 145 | + for ($id = $start; $id <= $end; $id++) { |
| 146 | + |
| 147 | + if ( !($id % $reportingInterval) ) { |
| 148 | + $this->output( "$id\n" ); |
| 149 | + wfWaitForSlaves( $maxLag ); |
| 150 | + } |
141 | 151 | $this->fixLinksFromArticle( $id ); |
| 152 | + } |
142 | 153 | } |
143 | 154 | } |
144 | 155 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -658,6 +658,8 @@ |
659 | 659 | * (bug 21679) "Edit block reasons" link at the bottom of Special:Blockip is now |
660 | 660 | only displayed to the users that have "editinterface" right |
661 | 661 | * (bug 21740) Attempting to protect a page that doesn't exist (salting) returns "unknown error" |
| 662 | +* (bug 18762) both redirects and links get fixed one after another if |
| 663 | + redirects-only switch is not present |
662 | 664 | |
663 | 665 | == API changes in 1.16 == |
664 | 666 | |