From d7a134060e2bab184ae0346ee65cd84f3981ab70 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 22 Nov 2019 14:03:34 +0100 Subject: git.archlinux32.org/archlinux32/ -> git.archlinux32.org/ --- lib/helper.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/helper.php b/lib/helper.php index 8a25b9b..043fab9 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -91,7 +91,7 @@ function git_url($repository,$type,$commit,$path,$line = null,$commit_is_hash = $git_available = preg_match( "/ 200 OK$/", - get_headers("https://git.archlinux32.org/archlinux32/packages")[0] + get_headers("https://git.archlinux32.org/packages")[0] ); apcu_store('git_available', $git_available, 120); }; @@ -111,7 +111,7 @@ function git_url($repository,$type,$commit,$path,$line = null,$commit_is_hash = switch ($type) { case "tree": return - "https://git.archlinux32.org/archlinux32/" . + "https://git.archlinux32.org/" . $repository . "/src/" . $commit . @@ -120,7 +120,7 @@ function git_url($repository,$type,$commit,$path,$line = null,$commit_is_hash = $line; case "log": return - "https://git.archlinux32.org/archlinux32/" . + "https://git.archlinux32.org/" . $repository . "/commits/" . $commit . @@ -141,7 +141,7 @@ function git_url($repository,$type,$commit,$path,$line = null,$commit_is_hash = switch ($type) { case "tree": return - "https://git2.archlinux32.org/archlinux32/" . + "https://git2.archlinux32.org/" . $repository . "/tree/" . $path . @@ -149,7 +149,7 @@ function git_url($repository,$type,$commit,$path,$line = null,$commit_is_hash = $line; case "log": return - "https://git2.archlinux32.org/archlinux32/" . + "https://git2.archlinux32.org/" . $repository . "/log/" . $path . -- cgit v1.2.3-70-g09d2