r41585 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41584‎ | r41585 | r41586 >
Date:02:17, 3 October 2008
Author:dale
Status:old
Tags:
Comment:
scraper updates
Modified paths:
  • /trunk/extensions/MetavidWiki/maintenance/metavid2mvWiki.inc.php (modified) (history)
  • /trunk/extensions/MetavidWiki/maintenance/scrape_and_insert.inc.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/maintenance/metavid2mvWiki.inc.php
@@ -695,7 +695,7 @@
696696 $imgTitle = Title :: makeTitle( NS_IMAGE, $person->name_clean . '.jpg' );
697697 // if(!$imgTitle->exists()){
698698 global $wgTmpDirectory;
699 - $url = 'http://www.opensecrets.org/politicians/img/pix/' . $person->osid . '.jpg';
 699+ $url = 'http://www.opensecrets.org/img/politicians/img/pix/' . $person->osid . '.jpg';
700700 // print $wgTmpDirectory . "\n";
701701 $local_file = tempnam( $wgTmpDirectory, 'WEBUPLOAD' );
702702 // copy file:
Index: trunk/extensions/MetavidWiki/maintenance/scrape_and_insert.inc.php
@@ -701,13 +701,13 @@
702702 do_update_wiki_page( $wgBillTitle, $bp );
703703
704704 // set up a redirect for the bill key, and a link for the category page:
705 - print "\ndo redirect for: $title_short \n";
 705+ //print "\ndo redirect for: $title_short \n";
706706 global $mvForceUpdate;
707 - $wgBillKeyTitle = Title::newFromText( $bill_key );
708 - do_update_wiki_page( $wgBillKeyTitle, '#REDIRECT [[' . $title_short . ']]', null, $mvForceUpdate );
 707+ //$wgBillKeyTitle = Title::newFromText( $bill_key );
 708+ //do_update_wiki_page( $wgBillKeyTitle, '#REDIRECT [[' . $title_short . ']]', null, $mvForceUpdate );
709709 // set up link on the category page:
710 - $wgCatPageTitle = Title::newFromText( $bill_key, NS_CATEGORY );
711 - do_update_wiki_page( $wgCatPageTitle, 'See Bill Page For More Info: [[:' . $wgBillTitle->getText() . ']]', null, $mvForceUpdate );
 710+ //$wgCatPageTitle = Title::newFromText( $bill_key, NS_CATEGORY );
 711+ //do_update_wiki_page( $wgCatPageTitle, 'See Bill Page For More Info: [[:' . $wgBillTitle->getText() . ']]', null, $mvForceUpdate );
712712 }
713713 function procMapLightInterest( $interest ) {
714714 global $mvMaxContribPerInterest, $mvMaxForAgainstBills;

Status & tagging log