Guarding newFromText calls
[mediawiki.git] / maintenance / rebuildMessages.php
blobc0f8aa08073da79ffd3c778851c7854fea466302
1 <?
3 if ( ! is_readable( "../LocalSettings.php" ) ) {
4 print "A copy of your installation's LocalSettings.php\n" .
5 "must exist in the source directory.\n";
6 exit();
9 $DP = "../includes";
10 include_once( "../LocalSettings.php" );
11 include_once( "../AdminSettings.php" );
13 include_once( "{$IP}/Setup.php" );
14 include_once( "./InitialiseMessages.inc" );
15 $wgTitle = Title::newFromText( "Rebuild messages script" );
16 set_time_limit(0);
18 initialiseMessages( true );
20 exit();