summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-06-12 17:19:15 -0400
committerJames Moger <james.moger@gitblit.com>2013-06-12 17:19:15 -0400
commitada1a326fa36ceb46922006f87d4cff0c49e071f (patch)
tree8e9e9edc8205afec23ab802b069b3ffe723e592f /src
parent0078c2b7816bcfc32078226e263ce346926014d0 (diff)
downloadgitblit-ada1a326fa36ceb46922006f87d4cff0c49e071f.tar.gz
gitblit-ada1a326fa36ceb46922006f87d4cff0c49e071f.zip
Fixed double enumeration of repositories on dashboard page
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/DashboardPage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/DashboardPage.java b/src/main/java/com/gitblit/wicket/pages/DashboardPage.java
index 66bbf734..5d838391 100644
--- a/src/main/java/com/gitblit/wicket/pages/DashboardPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/DashboardPage.java
@@ -124,7 +124,7 @@ public class DashboardPage extends RootPage {
// parameters
int daysBack = params == null ? 0 : WicketUtils.getDaysBack(params);
if (daysBack < 1) {
- daysBack = 14;
+ daysBack = 7;
}
Calendar c = Calendar.getInstance();
c.add(Calendar.DATE, -1*daysBack);
@@ -136,7 +136,7 @@ public class DashboardPage extends RootPage {
List<RepositoryModel> owned = new ArrayList<RepositoryModel>();
List<RepositoryModel> active = new ArrayList<RepositoryModel>();
- for (RepositoryModel model : GitBlit.self().getRepositoryModels(user)) {
+ for (RepositoryModel model : getRepositoryModels()) {
if (model.isUsersPersonalRepository(user.username) || model.isOwner(user.username)) {
owned.add(model);
}