From e571a694d6e15891b591c28dd40cd464740a7126 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 21 Oct 2011 15:15:55 -0500 Subject: 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 Signed-off-by: Lukas Fleischer --- web/template/header.php | 2 +- web/template/login_form.php | 2 +- web/template/pkg_comment_form.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'web/template') diff --git a/web/template/header.php b/web/template/header.php index 8313bb36..73486b4d 100644 --- a/web/template/header.php +++ b/web/template/header.php @@ -23,7 +23,7 @@
  • Forums
  • Wiki
  • Bugs
  • -
  • AUR
  • +
  • AUR
  • Download
  • diff --git a/web/template/login_form.php b/web/template/login_form.php index c27e9ba3..21bdaa72 100644 --- a/web/template/login_form.php +++ b/web/template/login_form.php @@ -32,7 +32,7 @@ else { ?> ', ''); ?> + '', ''); ?> diff --git a/web/template/pkg_comment_form.php b/web/template/pkg_comment_form.php index d3b602cd..a2bbf714 100644 --- a/web/template/pkg_comment_form.php +++ b/web/template/pkg_comment_form.php @@ -35,9 +35,9 @@ if (isset($_REQUEST['comment'])) { # Simply making these strings translatable won't work, users would be # getting emails in the language that the user who posted the comment was in $body = - 'from https://aur.archlinux.org/packages.php?ID=' + 'from ' . $AUR_LOCATION . '/packages.php?ID=' . $_REQUEST['ID'] . "\n" - . username_from_sid($_COOKIE['AURSID']) . " wrote:\n\n" + . username_from_sid($_COOKIE['AURSID'], $dbh) . " wrote:\n\n" . $_POST['comment'] . "\n\n---\nIf you no longer wish to receive notifications about this package, please go the the above package page and click the UnNotify button."; $body = wordwrap($body, 70); -- cgit v1.2.3-24-g4f1b