View | Details | Raw Unified | Return to bug 12446
Collapse All | Expand All

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

Return to bug 12446