* Use double quoted consistently on attributes in linker output; preparing for new...
[mediawiki.git] / maintenance / importLogs.php
blob6187c2e6e1fb6a605bbdc635333be792a56eaa13
1 <?php
2 /**
3 * @todo document
4 * @package MediaWiki
5 * @subpackage Maintenance
6 */
8 /** */
9 require_once( "commandLine.inc" );
10 require_once( "importLogs.inc" );
12 #print $text;
13 #exit();
15 foreach( LogPage::validTypes() as $type ) {
16 if( $type == '' ) continue;
18 $page = LogPage::logName( $type );
19 $log = new Article( Title::makeTitleSafe( NS_PROJECT, $page ) );
20 $text = $log->fetchContent();
22 $importer = new LogImporter( $type );
23 $importer->dummy = true;
24 $importer->importText( $text );