summaryrefslogtreecommitdiffstats
path: root/web/html/packages.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2013-04-14 17:58:57 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2013-04-20 00:22:53 +0200
commitca067d5492c72e2e034b14d294565881f0167a1f (patch)
tree136e361b5c4c43c6e6490a5b16631ba8888cb364 /web/html/packages.php
parentf542383bc536ea59e1390ecc796fe78bcd2e7f0e (diff)
downloadaur-ca067d5492c72e2e034b14d294565881f0167a1f.tar.gz
aur-ca067d5492c72e2e034b14d294565881f0167a1f.tar.xz
Retrieve package details after package actions are processed
Fixes FS#34508 Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/packages.php')
-rw-r--r--web/html/packages.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index a4a480ce..b390d768 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -26,12 +26,9 @@ if (!isset($pkgid) || !isset($pkgname)) {
}
}
-# Set the title to the current query and get package details if required
-$details = array();
-
+# Set the title to the current query or package name
if (isset($pkgname)) {
$title = $pkgname;
- $details = get_package_details($pkgid);
} else if (!empty($_GET['K'])) {
$title = __("Search Criteria") . ": " . $_GET['K'];
} else {
@@ -102,6 +99,12 @@ if (check_token()) {
}
}
+# Get package details after package actions have been attempted, FS#34508
+$details = array();
+if (isset($pkgname)) {
+ $details = get_package_details($pkgid);
+}
+
html_header($title, $details);
?>