X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Frebuildall.php;h=1268d2091627a50a331e70dd1379ca2c616ab6a9;hb=9ed334b55c57fa387cb25bd3a14bc90af345903e;hp=d52b0e53b8e42ca7f152a2bd91510cdf61c10360;hpb=fd0ff7a312126ca68e2ce4a11418d7854395f46a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildall.php b/maintenance/rebuildall.php index d52b0e53b8..1268d20916 100644 --- a/maintenance/rebuildall.php +++ b/maintenance/rebuildall.php @@ -22,7 +22,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that rebuilds link tracking tables from scratch. @@ -35,6 +35,10 @@ class RebuildAll extends Maintenance { $this->mDescription = "Rebuild links, text index and recent changes"; } + public function getDbType() { + return Maintenance::DB_ADMIN; + } + public function execute() { // Rebuild the text index if ( wfGetDB( DB_SLAVE )->getType() != 'postgres' ) {