mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add a new AUR_LOCATION setting
This should be set to something like 'http://localhost' for development or 'https://aur.archlinux.org' in production. It ensures all links in the site stay in the development site and there is no sudden jump from development to production environments. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
fe90b4bc3e
commit
e571a694d6
7 changed files with 14 additions and 6 deletions
|
@ -281,6 +281,7 @@ function html_header($title="") {
|
|||
global $LANG;
|
||||
global $SUPPORTED_LANGS;
|
||||
global $DISABLE_HTTP_LOGIN;
|
||||
global $AUR_LOCATION;
|
||||
|
||||
if (!$DISABLE_HTTP_LOGIN || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'])) {
|
||||
$login = try_login();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue