This LanguagePl.php works, really ;)
[mediawiki.git] / maintenance / rebuildall.php
blob9e64d193c32fab2a6e7720cb0f5aee90c845fdb5
1 <?
3 # Rebuild link tracking tables from scratch. This takes several
4 # hours, depending on the database size and server configuration.
6 if ( ! is_readable( "../LocalSettings.php" ) ) {
7 print "A copy of your installation's LocalSettings.php\n" .
8 "must exist in the source directory.\n";
9 exit();
12 $DP = "../includes";
13 include_once( "../LocalSettings.php" );
14 include_once( "../AdminSettings.php" );
16 include_once( "{$IP}/Setup.php" );
17 include_once( "./rebuildlinks.inc" );
18 include_once( "./rebuildtextindex.inc" );
19 include_once( "./rebuildrecentchanges.inc" );
20 $wgTitle = Title::newFromText( "Rebuild links script" );
21 set_time_limit(0);
23 $wgDBuser = $wgDBadminuser;
24 $wgDBpassword = $wgDBadminpassword;
26 rebuildLinkTablesPass1();
27 rebuildLinkTablesPass2();
29 dropTextIndex();
30 rebuildTextIndex();
31 createTextIndex();
33 rebuildRecentChangesTablePass1();
34 rebuildRecentChangesTablePass2();
36 print "Done.\n";
37 exit();