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