blob: 199a7f0c7576a06200fb40e2acaf96147ff3fce5 (
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
|
<?php
/**
* @todo document
* @addtogroup 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 );
}
|