diff options
author | Marcel Korpel <marcel.lists@gmail.com> | 2013-01-09 18:41:33 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2013-01-19 12:18:13 +0100 |
commit | 8e1051932eb86ef87f7b64efc86f50e633201b56 (patch) | |
tree | ce7bd28a65411339ca5cb5f711ddb6b79a01fa98 /web/html | |
parent | b004333eadb9a4db57592bb501b28edced708943 (diff) | |
download | aur-8e1051932eb86ef87f7b64efc86f50e633201b56.tar.gz aur-8e1051932eb86ef87f7b64efc86f50e633201b56.tar.xz |
Add description meta-element to package pages
Implements FS#33294
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/packages.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/web/html/packages.php b/web/html/packages.php index 61825501..c1e54e1b 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -20,9 +20,12 @@ if (!isset($pkgid) || !isset($pkgname)) { } } -# Set the title to the current query if required +# Set the title to the current query and get package details if required +$details = array(); + if (isset($pkgname)) { $title = $pkgname; + $details = get_package_details($pkgid); } else if (!empty($_GET['K'])) { $title = __("Search Criteria") . ": " . $_GET['K']; } else { @@ -93,7 +96,7 @@ if (check_token()) { } } -html_header($title); +html_header($title, $details); ?> <?php if ($output): ?> @@ -105,10 +108,10 @@ if (isset($pkgid)) { include('pkg_search_form.php'); if ($pkgid) { if (isset($_COOKIE["AURSID"])) { - package_details($pkgid, $_COOKIE["AURSID"]); + display_package_details($pkgid, $details, $_COOKIE["AURSID"]); } else { - package_details($pkgid, null); + display_package_details($pkgid, $details, null); } } else { print __("Error trying to retrieve package details.")."<br />\n"; |