blob: 6187c2e6e1fb6a605bbdc635333be792a56eaa13 (
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
* @package MediaWiki
* @subpackage 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 );
}
?>
|