?
[mediawiki.git] / maintenance / archives / moveCustomMessages.php
blob454bc830781d95a190dade5646bd98f37568b4bc
1 <?php
2 # Move "custom messages" from the MediaWiki namespace to the Template namespace
3 # Usage: php moveCustomMessages.php [<lang>] [phase]
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
10 chdir( ".." );
11 require_once( "liveCmdLine.inc" );
12 require_once( "moveCustomMessages.inc" );
14 $phase = 0;
15 if ( is_numeric( @$argv[3] ) && $argv[3] > 0) {
16 $phase = intval($argv[3]);
19 moveCustomMessages( $phase );