Some [[media:]] link tests
[mediawiki.git] / maintenance / archives / moveCustomMessages.php
blobea79bc21a0b2ef14097557c298668a2364c6b530
1 <?php
2 /**
3 * @deprecated
4 * @package MediaWiki
5 * @subpackage MaintenanceArchive
6 */
8 /** */
10 # Move "custom messages" from the MediaWiki namespace to the Template namespace
11 # Usage: php moveCustomMessages.php [<lang>] [phase]
13 # Script works in three phases:
14 # 1. Create redirects from Template to MediaWiki namespace. Skip if you don't want them
15 # 2. Move pages from MediaWiki to Template namespace.
16 # 3. Convert the text to suit the new syntax
18 chdir( ".." );
19 require_once( "liveCmdLine.inc" );
20 require_once( "moveCustomMessages.inc" );
22 $phase = 0;
23 if ( is_numeric( @$argv[3] ) && $argv[3] > 0) {
24 $phase = intval($argv[3]);
27 moveCustomMessages( $phase );