318cf902b065e7e25778ad8db377e4f0c18aabee
[lhc/web/wiklou.git] / maintenance / rebuildMessages.php
1 <?
2 $wgCommandLineMode = true;
3
4 if ( ! is_readable( "../LocalSettings.php" ) ) {
5 print "A copy of your installation's LocalSettings.php\n" .
6 "must exist in the source directory.\n";
7 exit();
8 }
9
10 $wgCommandLineMode = true;
11 $DP = "../includes";
12 include_once( "../LocalSettings.php" );
13 include_once( "../AdminSettings.php" );
14
15 $sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":";
16 ini_set( "include_path", "$IP$sep$include_path" );
17
18 include_once( "Setup.php" );
19 include_once( "./InitialiseMessages.inc" );
20 $wgTitle = Title::newFromText( "Rebuild messages script" );
21 $wgCommandLineMode = true;
22 set_time_limit(0);
23
24 initialiseMessages( true );
25
26 exit();
27
28 ?>