summaryrefslogtreecommitdiff
path: root/maintenance/importLogs.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/importLogs.php')
-rw-r--r--maintenance/importLogs.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/maintenance/importLogs.php b/maintenance/importLogs.php
new file mode 100644
index 00000000..6187c2e6
--- /dev/null
+++ b/maintenance/importLogs.php
@@ -0,0 +1,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 );
+}
+
+?>