Update jQuery from 1.12.4 to 3.7.1
[phorkie.git] / www / list.php
index 1ff8a87d68f462a7eca8f28a67bae0d9c6f05622..7c60ceb5b2ff63e50a2e282a6a6f94a1ca16e3b0 100644 (file)
@@ -7,7 +7,7 @@ $reqWritePermissions = false;
 require_once 'www-header.php';
 $rs = new Repositories();
 
-$page = 0;
+$page = $GLOBALS['phorkie']['cfg']['defaultListPage'];
 if (isset($_GET['page'])) {
     if (!is_numeric($_GET['page'])) {
         throw new Exception_Input('List page is not numeric');
@@ -15,8 +15,8 @@ if (isset($_GET['page'])) {
     $page = (int)$_GET['page'] - 1;
 }
 
-$perPage = 10;
-list($repos, $repoCount) = $rs->getList($page, $perPage);
+$perPage = $GLOBALS['phorkie']['cfg']['perPage'];
+list($repos, $repoCount, $page) = $rs->getList($page, $perPage);
 
 $pager = new Html_Pager(
     $repoCount, $perPage, $page + 1, 'list/%d'