diff options
author | Yorhel <git@yorhel.nl> | 2009-06-15 22:44:37 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-06-15 22:46:25 +0200 |
commit | 868dbd3ce390412623b44bd2e53e5436b816c26e (patch) | |
tree | 612aa8f4fb87d9440d46068c0579f262bbe7fbdb | |
parent | 32540b01cc4b2a1c90f11b8430b61a8b2e001c7b (diff) |
Corrected link to discussion board on deleted release pages
It used to link to /t/r+, but we don't have discussion boards for
releases, so lets just link to the board for the first related VN
of the release instead.
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index 8199cf20..de565954 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -129,13 +129,14 @@ sub htmlDenied { sub htmlHiddenMessage { my($self, $type, $obj) = @_; return 0 if !$obj->{hidden}; + my $board = $type eq 'r' ? 'v'.$obj->{vn}[0]{vid} : $type.$obj->{id}; div class => 'mainbox'; h1 $obj->{title}||$obj->{name}; div class => 'warning'; h2 'Item deleted'; p; lit qq|This item has been deleted from the database, File a request on the| - .qq| <a href="/t/$type$obj->{id}">discussion board</a> to undelete this page.|; + .qq| <a href="/t/$board">discussion board</a> to undelete this page.|; end; end; end; |