From 60cf332b595352b72f01eeff9d75e80ca4aa7dd3 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Mon, 29 Mar 2021 06:33:18 -0700 Subject: [PATCH] Replace references to git.php.net --- cron/cron.sh | 2 +- www/site.api.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cron/cron.sh b/cron/cron.sh index 01045f7..4d23e30 100755 --- a/cron/cron.sh +++ b/cron/cron.sh @@ -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 diff --git a/www/site.api.php b/www/site.api.php index 9842290..d33af9f 100644 --- a/www/site.api.php +++ b/www/site.api.php @@ -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 ''; } @@ -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 "$line"; }