Index: trunk/extensions/MetavidWiki/maintenance/metavid2mvWiki.inc.php |
— | — | @@ -695,7 +695,7 @@ |
696 | 696 | $imgTitle = Title :: makeTitle( NS_IMAGE, $person->name_clean . '.jpg' ); |
697 | 697 | // if(!$imgTitle->exists()){ |
698 | 698 | 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'; |
700 | 700 | // print $wgTmpDirectory . "\n"; |
701 | 701 | $local_file = tempnam( $wgTmpDirectory, 'WEBUPLOAD' ); |
702 | 702 | // copy file: |
Index: trunk/extensions/MetavidWiki/maintenance/scrape_and_insert.inc.php |
— | — | @@ -701,13 +701,13 @@ |
702 | 702 | do_update_wiki_page( $wgBillTitle, $bp ); |
703 | 703 | |
704 | 704 | // 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"; |
706 | 706 | 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 ); |
709 | 709 | // 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 ); |
712 | 712 | } |
713 | 713 | function procMapLightInterest( $interest ) { |
714 | 714 | global $mvMaxContribPerInterest, $mvMaxForAgainstBills; |