mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Split out the search form from pkg_search_page()
This makes it easier to display search results without showing the search form. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
6cb8c041bc
commit
ac745f656d
2 changed files with 2 additions and 3 deletions
|
@ -80,8 +80,9 @@ $(document).ready(function() {
|
|||
</script>
|
||||
|
||||
<?php
|
||||
include('pkg_search_form.php');
|
||||
|
||||
if (isset($pkgid)) {
|
||||
include('pkg_search_form.php');
|
||||
if ($pkgid) {
|
||||
if (isset($_COOKIE["AURSID"])) {
|
||||
pkg_display_details($pkgid, $details, $_COOKIE["AURSID"]);
|
||||
|
|
|
@ -888,8 +888,6 @@ function pkg_search_page($SID="") {
|
|||
$templ_pages[__('Last') . ' »'] = ($pages - 1) * $per_page;
|
||||
}
|
||||
|
||||
include('pkg_search_form.php');
|
||||
|
||||
$searchresults = array();
|
||||
if ($result) {
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue