diff options
author | 3dB <3db@3decibels.net> | 2009-08-06 18:36:01 -0400 |
---|---|---|
committer | 3dB <3db@3decibels.net> | 2009-08-06 18:36:01 -0400 |
commit | 1d2756b5fe83419a24591ccc4cc403c3d58dd7af (patch) | |
tree | bcc12f01e9fd5ec6aa53aaa55edb03428d614752 /lib | |
parent | 662ca34479611cc3b208b50c9406b876c3bc89b4 (diff) |
More logical naming of dbGetPost date filter
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/DB/Discussions.pm | 6 | ||||
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/VNDB/DB/Discussions.pm b/lib/VNDB/DB/Discussions.pm index 35c44f4c..5e371fbc 100644 --- a/lib/VNDB/DB/Discussions.pm +++ b/lib/VNDB/DB/Discussions.pm @@ -153,7 +153,7 @@ sub dbThreadCount { } -# Options: tid, num, what, order, uid, date >, hide, page, results +# Options: tid, num, what, order, uid, mindate, hide, page, results # what: user thread sub dbPostGet { my($self, %o) = @_; @@ -169,8 +169,8 @@ sub dbPostGet { 'tp.num = ?' => $o{num} ) : (), $o{uid} ? ( 'tp.uid = ?' => $o{uid} ) : (), - $o{date} ? ( - 'tp.date > ?' => $o{date} ) : (), + $o{mindate} ? ( + 'tp.date > ?' => $o{mindate} ) : (), $o{hide} ? ( 'tp.hidden = FALSE' => 1 ) : (), $o{hide} && $o{what} =~ /thread/ ? ( diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index a8175a7c..56bf9e83 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -168,7 +168,7 @@ sub edit { # check for double-posting push @{$frm->{_err}}, 'doublepost' if $self->dbPostGet( - uid => $self->authInfo->{id}, tid => $tid, date => time - 30, results => 1, $tid ? () : (num => 1))->[0]{num}; + uid => $self->authInfo->{id}, tid => $tid, mindate => time - 30, results => 1, $tid ? () : (num => 1))->[0]{num}; # parse and validate the boards my @boards; |