X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Frebuildall.php;h=d2ee6fc2ad913c6a1c94d88bf3fb77d1386f9c63;hb=049fb94979e6d79e4adbbeb4c9c968a67a478426;hp=1268d2091627a50a331e70dd1379ca2c616ab6a9;hpb=6d0a4f463e49db7fab930f38cd9bb5a8c5c8deb4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildall.php b/maintenance/rebuildall.php index 1268d20916..d2ee6fc2ad 100644 --- a/maintenance/rebuildall.php +++ b/maintenance/rebuildall.php @@ -32,7 +32,7 @@ require_once __DIR__ . '/Maintenance.php'; class RebuildAll extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Rebuild links, text index and recent changes"; + $this->addDescription( 'Rebuild links, text index and recent changes' ); } public function getDbType() { @@ -41,8 +41,9 @@ class RebuildAll extends Maintenance { public function execute() { // Rebuild the text index - if ( wfGetDB( DB_SLAVE )->getType() != 'postgres' ) { - $this->output( "** Rebuilding fulltext search index (if you abort this will break searching; run this script again to fix):\n" ); + if ( $this->getDB( DB_SLAVE )->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->execute(); } @@ -53,7 +54,8 @@ class RebuildAll extends Maintenance { $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" ); + $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->execute();