maintenance: Fix bad method call in RebuildTextIndex
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 21 Aug 2019 23:37:48 +0000 (16:37 -0700)
committerKrinkle <krinklemail@gmail.com>
Sat, 24 Aug 2019 19:53:27 +0000 (19:53 +0000)
commit2a340c2294d90f26f0ed82b9322f68acdb9757e1
tree48af9fabc2fa249c9c4e734949842f27164c8c29
parentb43543acc941633d12b2d26dfea53027bfa079d8
maintenance: Fix bad method call in RebuildTextIndex

This method was removed earlier this month with 2eb5bdbac6b7.

SearchSqlite already checks if the proper searchindex tables was created.
Avoid call to bogus IDatabase::checkForEnabledSearch() method.

Also make use of Maintenance::getDB()

Change-Id: If662e17093c1aef71ee9841259ca76e2ac31a7a9
maintenance/rebuildtextindex.php