Support plural for 'linkstoimage', 'redirectstofile' and 'duplicatesoffile'
[lhc/web/wiklou.git] / maintenance / importLogs.php
1 <?php
2 /**
3 * @todo document
4 * @file
5 * @ingroup Maintenance
6 */
7
8 /** */
9 require_once( "commandLine.inc" );
10 require_once( "importLogs.inc" );
11
12 #print $text;
13 #exit();
14
15 foreach( LogPage::validTypes() as $type ) {
16 if( $type == '' ) continue;
17
18 $page = LogPage::logName( $type );
19 $log = new Article( Title::makeTitleSafe( NS_PROJECT, $page ) );
20 $text = $log->fetchContent();
21
22 $importer = new LogImporter( $type );
23 $importer->dummy = true;
24 $importer->importText( $text );
25 }
26
27