diff options
author | Dan McGee <dan@archlinux.org> | 2011-10-21 15:15:55 -0500 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-11-02 21:21:23 +0100 |
commit | e571a694d6e15891b591c28dd40cd464740a7126 (patch) | |
tree | 22f52edb32653ba24ddf9ca5d1230b53a1968d4f /web/template/login_form.php | |
parent | fe90b4bc3e6b2a2a352236359577b3d46728aed6 (diff) | |
download | aurweb-e571a694d6e15891b591c28dd40cd464740a7126.tar.xz |
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>
Diffstat (limited to 'web/template/login_form.php')
-rw-r--r-- | web/template/login_form.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/login_form.php b/web/template/login_form.php index c27e9ba..21bdaa7 100644 --- a/web/template/login_form.php +++ b/web/template/login_form.php @@ -32,7 +32,7 @@ else { ?> <span class='error'> <?php printf(__("HTTP login is disabled. Please %sswitch to HTTPs%s if you want to login."), - '<a href="https://aur.archlinux.org' . htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES) . '">', '</a>'); ?> + '<a href="' . $AUR_LOCATION . htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES) . '">', '</a>'); ?> </span> <?php } ?> </div> |