summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/tpl/vnpage3
-rw-r--r--lib/VNDB.pm1
-rw-r--r--lib/global.pl3
3 files changed, 4 insertions, 3 deletions
diff --git a/data/tpl/vnpage b/data/tpl/vnpage
index 026f347f..e848089d 100644
--- a/data/tpl/vnpage
+++ b/data/tpl/vnpage
@@ -143,7 +143,8 @@ if($d{vn}{length} || $d{vn}{alias} || @links || $prod) { ]]
$_->{nfo_id} ? qq|<a href="http://animenfo.com/animetitle,$_->{nfo_id},vndb.html" title="AnimeNFO">NFO</a>| : (),
$_->{ann_id} ? qq|<a href="http://www.animenewsnetwork.com/encyclopedia/anime.php?id=$_->{ann_id}" title="Anime News Network">ANN</a>| : ();
]]
- <b>[-[[= $l ]]-]</b> <acronym title="[[: $_->{title_kanji} ]]">[[: shorten $_->{title_romaji}, 40 ]]</acronym> <b>([[: $VNDB::ANITYPE->[$_->{type}][0] ]], -[[= $_->{year} ]])</b>
+ <b>[-[[= $l ]]-]</b> <acronym title="[[: $_->{title_kanji} ]]">[[: shorten $_->{title_romaji}, 40 ]]</acronym>
+ <b>([[: $VNDB::ANITYPE->[$_->{type}][0] eq 'unknown' ? '' : $VNDB::ANITYPE->[$_->{type}][0].', ' ]][[= $_->{year} ]])</b>
[[ } ]]
</li>
[[ } ]]
diff --git a/lib/VNDB.pm b/lib/VNDB.pm
index d62af2cf..026ef60f 100644
--- a/lib/VNDB.pm
+++ b/lib/VNDB.pm
@@ -151,6 +151,7 @@ sub new {
my %args = @_;
my $me = bless {
+ debug => $VNDB::DEBUG,
%args,
_DB => VNDB::Util::DB->new(@VNDB::DBLOGIN),
_TPL => VNDB::Util::Template->new(%{$args{tplopts}}),
diff --git a/lib/global.pl b/lib/global.pl
index 8ce803d3..787c7647 100644
--- a/lib/global.pl
+++ b/lib/global.pl
@@ -19,7 +19,6 @@ our %VNDBopts = (
CookieDomain => '.vndb.org',
root_url => 'http://vndb.org',
static_url => 'http://static.vndb.org',
- debug => $DEBUG,
tplopts => {
filename => 'main',
searchdir => '/www/vndb/data/tpl',
@@ -28,7 +27,7 @@ our %VNDBopts = (
pre_chomp => 1,
post_chomp => 1,
rm_newlines => 0,
- deep_reload => $DEBUG,
+ deep_reload => 1,
},
ranks => [
[ [ qw| visitor loser user mod admin | ], [] ],