Lines 63-68
if ($plugins_enabled) {
Link Here
|
63 |
my @results; |
63 |
my @results; |
64 |
if ($plugin_search) { |
64 |
if ($plugin_search) { |
65 |
my $repos = C4::Context->config('plugin_repos'); |
65 |
my $repos = C4::Context->config('plugin_repos'); |
|
|
66 |
|
67 |
# Fix data structure if only one repo defined |
68 |
if ( ref($repos->{repo}) eq 'HASH' ) { |
69 |
$repos = { repo => [ $repos->{repo} ] }; |
70 |
} |
71 |
|
66 |
foreach my $r ( @{ $repos->{repo} } ) { |
72 |
foreach my $r ( @{ $repos->{repo} } ) { |
67 |
if ( $r->{service} eq 'github' ) { |
73 |
if ( $r->{service} eq 'github' ) { |
68 |
my $url = "https://api.github.com/search/repositories?q=$plugin_search+user:$r->{org_name}+in:name,description"; |
74 |
my $url = "https://api.github.com/search/repositories?q=$plugin_search+user:$r->{org_name}+in:name,description"; |
69 |
- |
|
|