X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Frebuildall.php;h=30a5dd42b4c7334a10ac5595bbed18d106dd7974;hb=c99e9beff7d7c1a5a48f8d6f869a42425021c62b;hp=95822ca26938ae081f50779ab9fe51b9a1ac1723;hpb=2fdcd7bfdd95a3b1515b9a94289d67eb60add484;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildall.php b/maintenance/rebuildall.php index 95822ca269..30a5dd42b4 100644 --- a/maintenance/rebuildall.php +++ b/maintenance/rebuildall.php @@ -44,24 +44,24 @@ class RebuildAll extends Maintenance { 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;