Index: trunk/phase3/maintenance/cleanupTitles.php |
— | — | @@ -179,16 +179,22 @@ |
180 | 180 | if( is_null( $title ) ) { |
181 | 181 | die( "Something awry; empty title.\n" ); |
182 | 182 | } |
| 183 | + $ns = $title->getNamespace(); |
183 | 184 | $dest = $title->getDbKey(); |
184 | 185 | if( $this->dryrun ) { |
185 | 186 | $this->log( "DRY RUN: would rename $row->page_id ($row->page_namespace,'$row->page_title') to ($row->page_namespace,'$dest')" ); |
186 | 187 | } else { |
187 | | - $this->log( "renaming $row->page_id ($row->page_namespace,'$row->page_title') to ($row->page_namespace,'$dest')" ); |
| 188 | + $this->log( "renaming $row->page_id ($row->page_namespace,'$row->page_title') to ($ns,'$dest')" ); |
188 | 189 | $dbw =& wfGetDB( DB_MASTER ); |
189 | 190 | $dbw->update( 'page', |
190 | | - array( 'page_title' => $dest ), |
| 191 | + array( |
| 192 | + 'page_namespace' => $ns, |
| 193 | + 'page_title' => $dest |
| 194 | + ), |
191 | 195 | array( 'page_id' => $row->page_id ), |
192 | 196 | 'cleanupTitles::moveInconsistentPage' ); |
| 197 | + global $wgLinkCache; |
| 198 | + $wgLinkCache->clear(); |
193 | 199 | } |
194 | 200 | } |
195 | 201 | |