X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupTitles.php;h=ccc64068093e619936633162982f8544e8ad536a;hb=558b28003fc234f9c7ab3dfd83c8364f4e7260bc;hp=4f23ef01afe1e30b114e8431bed739147e703b3b;hpb=d716155c8b2d6e4a51a4110195cee7a1794846e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupTitles.php b/maintenance/cleanupTitles.php index 4f23ef01af..ccc6406809 100644 --- a/maintenance/cleanupTitles.php +++ b/maintenance/cleanupTitles.php @@ -78,7 +78,7 @@ class TitleCleanup extends TableCleanup { protected function fileExists( $name ) { // XXX: Doesn't actually check for file existence, just presence of image record. // This is reasonable, since cleanupImages.php only iterates over the image table. - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $row = $dbr->selectRow( 'image', [ 'img_name' ], [ 'img_name' => $name ], __METHOD__ ); return $row !== false; @@ -138,14 +138,14 @@ class TitleCleanup extends TableCleanup { $prior = $title->getDBkey(); } - # Old cleanupTitles could move articles there. See bug 23147. + # Old cleanupTitles could move articles there. See T25147. $ns = $row->page_namespace; if ( $ns < 0 ) { $ns = 0; } # Namespace which no longer exists. Put the page in the main namespace - # since we don't have any idea of the old namespace name. See bug 68501. + # since we don't have any idea of the old namespace name. See T70501. if ( !MWNamespace::exists( $ns ) ) { $ns = 0; }