aboutsummaryrefslogtreecommitdiff
path: root/brep/package-details.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'brep/package-details.cxx')
-rw-r--r--brep/package-details.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/brep/package-details.cxx b/brep/package-details.cxx
index 30e185e..a10f668 100644
--- a/brep/package-details.cxx
+++ b/brep/package-details.cxx
@@ -37,7 +37,7 @@ init (scanner& s)
if (options_->root ().empty ())
options_->root (dir_path ("/"));
- db_ = shared_database (options_->db_host (), options_->db_port ());
+ db_ = shared_database (*options_);
}
template <typename T>
@@ -160,7 +160,7 @@ handle (request& rq, response& rs)
if (const auto& d = pkg->description)
s << (full
? P_DESCRIPTION (*d, id)
- : P_DESCRIPTION (*d, options_->description_len (),
+ : P_DESCRIPTION (*d, options_->package_description (),
url (!full, squery, page, id)));
s << TABLE(CLASS="proplist", ID="package")
@@ -232,7 +232,7 @@ handle (request& rq, response& rs)
t.commit ();
- s << DIV_PAGER (page, pkg_count, res_page, options_->pager_pages (),
+ s << DIV_PAGER (page, pkg_count, res_page, options_->search_pages (),
url (full, squery))
<< ~DIV
<< ~BODY