aboutsummaryrefslogtreecommitdiff
path: root/www/list.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-05-14 08:12:12 +0200
committerChristian Weiske <cweiske@cweiske.de>2014-05-14 08:12:12 +0200
commita1b772ed96d84480ece5c35eb4c95b692fb63ecc (patch)
treed96a785cd75a731cae95d36bec43eb9ed52ed1fb /www/list.php
parent991497ceb381d1ab6bc79db8bfad4405c8bbd008 (diff)
downloadphorkie-a1b772ed96d84480ece5c35eb4c95b692fb63ecc.tar.gz
phorkie-a1b772ed96d84480ece5c35eb4c95b692fb63ecc.zip
show newest repositories in list at first
Diffstat (limited to 'www/list.php')
-rw-r--r--www/list.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/list.php b/www/list.php
index 88ad31d..7c60ceb 100644
--- a/www/list.php
+++ b/www/list.php
@@ -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');
@@ -16,7 +16,7 @@ if (isset($_GET['page'])) {
}
$perPage = $GLOBALS['phorkie']['cfg']['perPage'];
-list($repos, $repoCount) = $rs->getList($page, $perPage);
+list($repos, $repoCount, $page) = $rs->getList($page, $perPage);
$pager = new Html_Pager(
$repoCount, $perPage, $page + 1, 'list/%d'