X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Frebuildall.php;h=1268d2091627a50a331e70dd1379ca2c616ab6a9;hb=83044a8e42bda7ac4d493f7487c9899f36c88c17;hp=882ae1b3bd465674e87235ed085cc953985de045;hpb=5e2ac408f888043b3c62a42b5c9c9ece5ddaf419;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildall.php b/maintenance/rebuildall.php index 882ae1b3bd..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' ) { @@ -58,4 +62,4 @@ class RebuildAll extends Maintenance { } $maintClass = "RebuildAll"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;