forked from tk-sls.de/linuxfoo-gitlab
bugfix in commits API result check
This commit is contained in:
parent
89e1dbc6be
commit
165ebeb13d
@ -111,7 +111,7 @@ class LinuxfooGitlab {
|
|||||||
|
|
||||||
$commits_json = file_get_contents($commits_url);
|
$commits_json = file_get_contents($commits_url);
|
||||||
|
|
||||||
if(is_null($project_json)) {
|
if(is_null($commits_json)) {
|
||||||
return self::error(__('Commits URL not reachable.', 'linuxfoo-gitlab'));
|
return self::error(__('Commits URL not reachable.', 'linuxfoo-gitlab'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,9 +161,8 @@ class LinuxfooGitlab {
|
|||||||
'</li>';
|
'</li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$out .=
|
$out .= '</ul>';
|
||||||
'</ul>'.
|
$out .= '</div>';
|
||||||
'</div>';
|
|
||||||
|
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user