<?php
+/**
+ * @todo document
+ * @package MediaWiki
+ * @subpackage Maintenance
+ */
+/** */
require_once( "commandLine.inc" );
require_once( "importLogs.inc" );
foreach( LogPage::validTypes() as $type ) {
if( $type == '' ) continue;
-
+
$page = LogPage::logName( $type );
$log = new Article( Title::makeTitleSafe( NS_PROJECT, $page ) );
- $text = $log->getContentWithoutUsingSoManyDamnGlobals();
+ $text = $log->fetchContent();
$importer = new LogImporter( $type );
$importer->dummy = true;
$importer->importText( $text );
}
-?>
\ No newline at end of file
+?>