bugfix in link(s) to release(s)

This commit is contained in:
Tilman Kranz 2021-11-27 16:58:32 +01:00
parent ffd8fd7f30
commit db6308e791

View File

@ -192,7 +192,7 @@ class LinuxfooGitlab {
$out .= $out .=
'<p class="releases">'. '<p class="releases">'.
__('Latest release', 'linuxfoo-gitlab').': '. __('Latest release', 'linuxfoo-gitlab').': '.
'<a href="'.$releases[0]->evidences->_links->self.'">'.$releases[0]->name.'</a>'. '<a href="'.$releases[0]->_links->self.'">'.$releases[0]->name.'</a>'.
'</p>'; '</p>';
} }
elseif($atts['releases']=='all') { elseif($atts['releases']=='all') {
@ -205,7 +205,7 @@ class LinuxfooGitlab {
foreach($releases as $release) { foreach($releases as $release) {
$out .= $out .=
'<li>'. '<li>'.
'<a href="'.$release->evidences->_links->self.'">'.$release->name.'</a>'. '<a href="'.$release->_links->self.'">'.$release->name.'</a>'.
'</li>'; '</li>';
} }