Skip to content

Commit

Permalink
Remove XXXXXX from output
Browse files Browse the repository at this point in the history
It was surely added for debugging.
Add a couple of comments, always helpfule later.
  • Loading branch information
dlangille committed Nov 5, 2023
1 parent 0b41cce commit 16491ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion classes/display_commit.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ function CreateHTML() {

if (!$TooManyPorts) {
$this->HTML .= '<li>';
#
# XXX This 0 is in the if beacuse I'm testing the ELSE portion for all purposes
#
if (0 && IsSet($mycommit->category) && $mycommit->category != '') {
# i.e. this is a category/port item, as opposed to MOVED, or UPDATING
if ($Debug) echo 'category is set';
Expand Down Expand Up @@ -399,10 +402,11 @@ function CreateHTML() {
$this->HTML .= freshports_git_Link_gitlab ($mycommit->repo_hostname, $mycommit->path_to_repo, $PathName) . '&nbsp;';

if ($PathName != $mycommit->element_pathname) {
# the replace changes encoded / to plain text / - not sure why may have been present
$this->HTML .= '<a href="/' . str_replace('%2F', '/', urlencode($PathName)) . $QueryArgs . '">' . $PathName. '</a>';
$this->HTML .= "</span>\n";
} else {
#$this->HTML .= 'XXXXXX <a href="' . FRESHPORTS_FREEBSD_CVS_URL . $PathName . '#rev' . $mycommit->revision . '">' . $PathName . '</a>';
#$this->HTML .= '<a href="' . FRESHPORTS_FREEBSD_CVS_URL . $PathName . '#rev' . $mycommit->revision . '">' . $PathName . '</a>';
$this->HTML .= $PathName;
$this->HTML .= "</span>\n";
}
Expand Down

0 comments on commit 16491ff

Please sign in to comment.