Navigation Menu

Skip to content

Commit

Permalink
Replace references to git.php.net
Browse files Browse the repository at this point in the history
  • Loading branch information
rlerdorf committed Mar 29, 2021
1 parent 80183c6 commit 60cf332
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cron/cron.sh
Expand Up @@ -105,7 +105,7 @@ do
git reset --hard
git pull
else
git clone http://git.php.net/repository/php-src.git -b $GITBRANCH $PHPTAG
git clone https://github.com/php/php-src.git -b $GITBRANCH $PHPTAG
cd ${PHPTAG}
fi
git clean -xfd > /dev/null
Expand Down
10 changes: 5 additions & 5 deletions www/site.api.php
Expand Up @@ -306,7 +306,7 @@ function version_to_git_tag($version) {
// Hacked for our change to OpenGrok
function make_lxr_link($version, $path, $line)
{
if ($path{0} === '/') {
if ($path[0] === '/') {
return '';
}

Expand All @@ -318,17 +318,17 @@ function make_lxr_link($version, $path, $line)
// Hacked for our change to SVN
function make_cvs_link($path, $line)
{
if ($path{0} === '/') {
if ($path[0] === '/') {
return $line;
}

if ($GLOBALS['version'] === 'PHP_HEAD') {
$link = "http://git.php.net/?p=php-src.git;a=blob;f=$path;hb=HEAD#l$line";
$link = "https://github.com/php/php-src/blob/master/$path#L$line";
} else {
$v = version_to_git_tag($GLOBALS['version']);
$link = "http://git.php.net/?p=php-src.git;a=blob;f=$path;hb=refs/heads/$v#l$line";
$link = "https://github.com/php/php-src/blob/$v/$path#L$line";
}

return "<a href=\"$link\">$line</a>";
}

Expand Down

0 comments on commit 60cf332

Please sign in to comment.