Language object cache, for faster wfMsg() performance with unusual languages, and...
[mediawiki.git] / maintenance / importLogs.php
blob059c2f176095663b00691ec0e4b161aeb1c1efff
1 <?php
2 /**
3 * @todo document
4 * @file
5 * @ingroup 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 );