mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
f542383bc5
commit
ca067d5492
1 changed files with 7 additions and 4 deletions
|
@ -26,12 +26,9 @@ if (!isset($pkgid) || !isset($pkgname)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set the title to the current query and get package details if required
|
# Set the title to the current query or package name
|
||||||
$details = array();
|
|
||||||
|
|
||||||
if (isset($pkgname)) {
|
if (isset($pkgname)) {
|
||||||
$title = $pkgname;
|
$title = $pkgname;
|
||||||
$details = get_package_details($pkgid);
|
|
||||||
} else if (!empty($_GET['K'])) {
|
} else if (!empty($_GET['K'])) {
|
||||||
$title = __("Search Criteria") . ": " . $_GET['K'];
|
$title = __("Search Criteria") . ": " . $_GET['K'];
|
||||||
} else {
|
} 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);
|
html_header($title, $details);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue