r29941 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29940‎ | r29941 | r29942 >
Date:02:33, 19 January 2008
Author:dale
Status:old
Tags:
Comment:
minor updates for syncing with existing data set
Modified paths:
  • /trunk/extensions/MetavidWiki/maintenance/metavid2mvWiki.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/maintenance/metavid2mvWiki.php
@@ -184,6 +184,7 @@
185185 ie: senate_proceeding_04-11-07
186186 options:
187187 --noimage will skip image downloading
 188+ --skiptext skips text sync
188189 actions:
189190 stream_name will proccess that stream name
190191 'all_in_sync' will insert all streams that are tagged in_sync
@@ -500,11 +501,11 @@
501502 //print 'do stream desc'."\n";
502503 do_add_stream($mvTitle, $stream);
503504 echo "stream " . $mvTitle->getStreamName() . " added \n";
504 - } else {
505 - do_update_wiki_page($stream->name, mv_semantic_stream_desc($mvTitle, $stream), MV_NS_STREAM);
 505+ } else {
 506+ do_update_wiki_page($stream->name, mv_semantic_stream_desc($mvTitle, $stream), MV_NS_STREAM);
506507 //$updated = ' updated' echo "stream " . $mvTitle->getStreamName() . " already present $updated\n";
507508 }
508 - //add duration and start_time attr
 509+ //add duration and start_time attr
509510 do_stream_attr_check($stream);
510511
511512 //do insert/copy all media images
@@ -514,9 +515,11 @@
515516
516517 //check for files (make sure they match with metavid db values
517518 do_stream_file_check($stream);
518 -
519 - //proccess all stream text:
520 - do_proccess_text($stream);
 519+
 520+ if(!isset($options['skiptext'])){
 521+ //proccess all stream text:
 522+ do_proccess_text($stream);
 523+ }
521524 }
522525 }
523526 function do_proccess_text($stream){

Status & tagging log