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() {
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' );