diff options
author | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-06-30 10:02:06 +0000 |
---|---|---|
committer | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-06-30 10:02:06 +0000 |
commit | 5fd0fb77b025faf71946df483296f24e756e3657 (patch) | |
tree | df77cc322ab8bbb2b4864d5359fee8470b0db6d3 /lib | |
parent | 0c5cd15570ea2b741b86c6cff8dbc5d9365a4cc6 (diff) |
Fixed a few typos, the edit summary is optional again, and added warnings for extreme votes and empty edit summaries
git-svn-id: svn://vndb.org/vndb@47 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ChangeLog | 3 | ||||
-rw-r--r-- | lib/VNDB/Producers.pm | 2 | ||||
-rw-r--r-- | lib/VNDB/Releases.pm | 2 | ||||
-rw-r--r-- | lib/VNDB/VN.pm | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 99448d1c..d8815122 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -10,8 +10,9 @@ TODO: - Releases, producers and visual novel items can't be fully deleted anymore - Hidden vote and vnlist items from the 'recent' lists on VN stat pages for users who don't want that to be seen - - Edit summary field is required + - Added warnings for empty edit summary and extreme votes - Changed earliest release date to 1980 + - Added NES and MSX platforms 1.17 - 2008-06-21 (r33) - Added PS3 and Xbox 360 to platforms diff --git a/lib/VNDB/Producers.pm b/lib/VNDB/Producers.pm index b47ce8a6..ba800c7c 100644 --- a/lib/VNDB/Producers.pm +++ b/lib/VNDB/Producers.pm @@ -95,7 +95,7 @@ sub PEdit { { name => 'lang', required => 1, enum => [ keys %$VNDB::LANG ] }, { name => 'website', required => 0, maxlength => 200, template => 'url', default => '' }, { name => 'desc', required => 0, maxlength => 10240, default => '' }, - { name => 'comm', required => 1, minlength => 10, maxlength => 1000 }, + { name => 'comm', required => 0, default => '' }, ); return $self->ResRedirect('/p'.$id, 'post') diff --git a/lib/VNDB/Releases.pm b/lib/VNDB/Releases.pm index f40a9128..bf293647 100644 --- a/lib/VNDB/Releases.pm +++ b/lib/VNDB/Releases.pm @@ -83,7 +83,7 @@ sub REdit { { name => 'media', required => 0, default => '' }, { name => 'producers', required => 0, default => '' }, { name => 'vn', required => 1, maxlength => 10240 }, - { name => 'comm', required => 1, minlength => 10, maxlength => 1000 }, + { name => 'comm', required => 0, default => '' }, ); my $released = !$frm->{released}[0] ? 0 : diff --git a/lib/VNDB/VN.pm b/lib/VNDB/VN.pm index 7e1b41c6..f0727e6a 100644 --- a/lib/VNDB/VN.pm +++ b/lib/VNDB/VN.pm @@ -94,7 +94,7 @@ sub VNEdit { { name => 'img_nsfw', required => 0 }, { name => 'categories', required => 0, default => '' }, { name => 'relations', required => 0, default => '' }, - { name => 'comm', required => 1, minlength => 10, maxlength => 1000 }, + { name => 'comm', required => 0, default => '' }, ); $frm->{img_nsfw} = $frm->{img_nsfw} ? 1 : 0; $frm->{anime} = join(' ', sort { $a <=> $b } grep /^[0-9]+$/, split(/\s+/, $frm->{anime})); # re-sort |