454bc830781d95a190dade5646bd98f37568b4bc
[lhc/web/wiklou.git] / maintenance / archives / moveCustomMessages.php
1 <?php
2 # Move "custom messages" from the MediaWiki namespace to the Template namespace
3 # Usage: php moveCustomMessages.php [<lang>] [phase]
4
5 # Script works in three phases:
6 # 1. Create redirects from Template to MediaWiki namespace. Skip if you don't want them
7 # 2. Move pages from MediaWiki to Template namespace.
8 # 3. Convert the text to suit the new syntax
9
10 chdir( ".." );
11 require_once( "liveCmdLine.inc" );
12 require_once( "moveCustomMessages.inc" );
13
14 $phase = 0;
15 if ( is_numeric( @$argv[3] ) && $argv[3] > 0) {
16 $phase = intval($argv[3]);
17 }
18
19 moveCustomMessages( $phase );
20
21 ?>