Lines 76-83
if ($plugins_enabled) {
Link Here
|
76 |
my $response = from_json( get($url) ); |
76 |
my $response = from_json( get($url) ); |
77 |
foreach my $result ( @{ $response->{items} } ) { |
77 |
foreach my $result ( @{ $response->{items} } ) { |
78 |
next unless $result->{name} =~ /^koha-plugin-/; |
78 |
next unless $result->{name} =~ /^koha-plugin-/; |
79 |
my $releases = $result->{url} . "/releases/latest"; |
79 |
my $releases = $result->{url} . "/releases/latest"; |
80 |
my $release = from_json( get($releases) ); |
80 |
my $release_info = get($releases); |
|
|
81 |
next unless $release_info; |
82 |
my $release = from_json( $release_info ); |
81 |
my $tag_name = $release->{tag_name}; |
83 |
my $tag_name = $release->{tag_name}; |
82 |
for my $asset ( @{$release->{assets}} ) { |
84 |
for my $asset ( @{$release->{assets}} ) { |
83 |
if ($asset->{browser_download_url} =~ m/\.kpz$/) { |
85 |
if ($asset->{browser_download_url} =~ m/\.kpz$/) { |
84 |
- |
|
|