summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-01-24 10:04:03 +0100
committerYorhel <git@yorhel.nl>2010-01-24 10:04:03 +0100
commit7aa1cf381caf1f06e4aed257f8ab49bb0cbb409e (patch)
treed6ef992e48151707a5941530b64d83f04de5e316 /lib
parentd2dd07de4e0d9b8c00cd2db49aa2e7c0a5150bbc (diff)
Show deleted entries in the edit histories by default
They used to be hidden from all edit histories, but there's not really a point in hiding them. In fact, it'll only confuse people who just got their DB entry deleted and can't find any evidence that it even existed at all.
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Misc.pm4
-rw-r--r--lib/VNDB/Handler/Users.pm2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm
index 820f34cd..7d2bd78c 100644
--- a/lib/VNDB/Handler/Misc.pm
+++ b/lib/VNDB/Handler/Misc.pm
@@ -62,7 +62,7 @@ sub homepage {
h1;
a href => '/hist', mt '_home_recentchanges';
end;
- my $changes = $self->dbRevisionGet(what => 'item user', results => 10, auto => 1, hidden => 1);
+ my $changes = $self->dbRevisionGet(what => 'item user', results => 10, auto => 1);
ul;
for (@$changes) {
li;
@@ -184,7 +184,7 @@ sub history {
my $f = $self->formValidate(
{ name => 'p', required => 0, default => 1, template => 'int' },
{ name => 'm', required => 0, default => !$type, enum => [ 0, 1 ] },
- { name => 'h', required => 0, default => 1, enum => [ -1..1 ] },
+ { name => 'h', required => 0, default => 0, enum => [ -1..1 ] },
{ name => 't', required => 0, default => '', enum => [ 'v', 'r', 'p' ] },
{ name => 'e', required => 0, default => 0, enum => [ -1..1 ] },
{ name => 'r', required => 0, default => 0, enum => [ 0, 1 ] },
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm
index 2cec8b52..386fcda1 100644
--- a/lib/VNDB/Handler/Users.pm
+++ b/lib/VNDB/Handler/Users.pm
@@ -113,7 +113,7 @@ sub userpage {
}
if($u->{c_changes}) {
- my $list = $self->dbRevisionGet(what => 'item user', uid => $uid, results => 5, hidden => 1);
+ my $list = $self->dbRevisionGet(what => 'item user', uid => $uid, results => 5);
h1 class => 'boxtitle';
a href => "/u$uid/hist", mt '_userpage_changes';
end;