X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=blobdiff_plain;f=maintenance%2Frebuildall.php;h=d2ee6fc2ad913c6a1c94d88bf3fb77d1386f9c63;hb=74174fca253b9a759d7402f09b7fc37d5de0e9be;hp=eeee9c21b7c936bea4339da005312529d0b643dd;hpb=bd2a78a159ce6d9f7b27fd75d05570228b44c3cb;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildall.php b/maintenance/rebuildall.php index eeee9c21b7..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,7 +41,7 @@ class RebuildAll extends Maintenance { public function execute() { // Rebuild the text index - if ( wfGetDB( DB_SLAVE )->getType() != 'postgres' ) { + 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' );