git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simple cache for rendered files
[phorkie.git]
/
www
/
list.php
diff --git
a/www/list.php
b/www/list.php
index 88ad31dc66a20f7e3cef0fd00d558ecee0019fd8..7c60ceb5b2ff63e50a2e282a6a6f94a1ca16e3b0 100644
(file)
--- a/
www/list.php
+++ b/
www/list.php
@@
-7,7
+7,7
@@
$reqWritePermissions = false;
require_once 'www-header.php';
$rs = new Repositories();
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');
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'];
}
$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'
$pager = new Html_Pager(
$repoCount, $perPage, $page + 1, 'list/%d'