Skip to content

Commit

Permalink
[#46][#67] fixed PL parser
Browse files Browse the repository at this point in the history
  • Loading branch information
bjendres committed Mar 22, 2023
2 parents a7bde40 + 7223c37 commit 7fcae1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Bic/Parser/PL.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class CRM_Bic_Parser_PL extends CRM_Bic_Parser_Parser {

// official source of Polish National Bank
static $page_url = 'http://www.nbp.pl/banki_w_polsce/ewidencja/dz_bank_jorg.txt';
static $page_url = 'https://ewib.nbp.pl/plewibnra?dokNazwa=plewibnra.txt';

public function update() {
// first, download the page, it's a CSV file, so more convenient not to use built in method
Expand All @@ -42,7 +42,7 @@ public function update() {
$data[] = array_map('trim', str_getcsv($line, "\t"));
$count++;
}

unset($lines);

if (empty($count)) {
Expand Down

0 comments on commit 7fcae1f

Please sign in to comment.