X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Frebuildall.php;h=30a5dd42b4c7334a10ac5595bbed18d106dd7974;hb=4fa7c42db953988058a1ed4e3813a06a04ae79f8;hp=d2ee6fc2ad913c6a1c94d88bf3fb77d1386f9c63;hpb=ae69acacf567077b3f49d1fe6c3f3770e72a9093;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildall.php b/maintenance/rebuildall.php index d2ee6fc2ad..30a5dd42b4 100644 --- a/maintenance/rebuildall.php +++ b/maintenance/rebuildall.php @@ -41,27 +41,27 @@ class RebuildAll extends Maintenance { public function execute() { // Rebuild the text index - if ( $this->getDB( DB_SLAVE )->getType() != 'postgres' ) { + if ( $this->getDB( DB_REPLICA )->getType() != 'postgres' ) { $this->output( "** Rebuilding fulltext search index (if you abort " . "this will break searching; run this script again to fix):\n" ); - $rebuildText = $this->runChild( 'RebuildTextIndex', 'rebuildtextindex.php' ); + $rebuildText = $this->runChild( RebuildTextIndex::class, 'rebuildtextindex.php' ); $rebuildText->execute(); } // Rebuild RC $this->output( "\n\n** Rebuilding recentchanges table:\n" ); - $rebuildRC = $this->runChild( 'RebuildRecentchanges', 'rebuildrecentchanges.php' ); + $rebuildRC = $this->runChild( RebuildRecentchanges::class, 'rebuildrecentchanges.php' ); $rebuildRC->execute(); // Rebuild link tables $this->output( "\n\n** Rebuilding links tables -- this can take a long time. " . "It should be safe to abort via ctrl+C if you get bored.\n" ); - $rebuildLinks = $this->runChild( 'RefreshLinks', 'refreshLinks.php' ); + $rebuildLinks = $this->runChild( RefreshLinks::class, 'refreshLinks.php' ); $rebuildLinks->execute(); $this->output( "Done.\n" ); } } -$maintClass = "RebuildAll"; +$maintClass = RebuildAll::class; require_once RUN_MAINTENANCE_IF_MAIN;