X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Frebuildall.php;h=30a5dd42b4c7334a10ac5595bbed18d106dd7974;hp=95822ca26938ae081f50779ab9fe51b9a1ac1723;hb=faf7cc4a09848c538320bd2b9067b1a77c0a0183;hpb=320e4c56132681f811c2819e3e22e98715f46ae7 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;