r56709 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56708‎ | r56709 | r56710 >
Date:15:55, 21 September 2009
Author:werdna
Status:deferred
Tags:
Comment:
Some adjustments to the import process
Modified paths:
  • /trunk/extensions/LiquidThreads/import/WikiText/ParseDiscussion.pm (modified) (history)
  • /trunk/extensions/LiquidThreads/import/import-parsed-discussions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/import/import-parsed-discussions.php
@@ -6,10 +6,15 @@
77
88 # # Imports JSON-encoded discussions from parse-wikitext-discussions.pl
99
10 -$structure = json_decode( file_get_contents( $argv[1] ), true );
 10+//die( var_dump( $argv ) );
1111
12 -$article = new Article( Title::newFromText( $argv[2] ) );
 12+$structure = json_decode( file_get_contents( $argv[0] ), true );
1313
 14+$article = new Article( Title::newFromText( $argv[1] ) );
 15+
 16+$wgOut->_unstub();
 17+$wgOut->setTitle( $article->getTitle() );
 18+
1419 $subject = '';
1520 $rootPost = null;
1621
Index: trunk/extensions/LiquidThreads/import/WikiText/ParseDiscussion.pm
@@ -27,7 +27,7 @@
2828 $line =~ s/\s*$//g;
2929 if (!$line) { return; }
3030
31 - $line =~ s/^:+//g;
 31+ $line =~ s/^:+\s*//g;
3232
3333 ## Add to the content.
3434 $current_post->{'content'} .= $line;

Status & tagging log