From 868dbd3ce390412623b44bd2e53e5436b816c26e Mon Sep 17 00:00:00 2001 From: Yorhel Date: Mon, 15 Jun 2009 22:44:37 +0200 Subject: 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. --- lib/VNDB/Util/CommonHTML.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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| discussion board to undelete this page.|; + .qq| discussion board to undelete this page.|; end; end; end; -- cgit v1.2.3