X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Frebuildall.php;h=95822ca26938ae081f50779ab9fe51b9a1ac1723;hb=e31c9986a17f036ec89e2ef3f04519026e42ebf3;hp=4ff873e9c6bf870d19d4c616300b05a87182de6e;hpb=e4854a1f0057ac344e2b5c6656ac186fcd8dc3fa;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildall.php b/maintenance/rebuildall.php index 4ff873e9c6..95822ca269 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,7 +41,7 @@ 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' );