diff options
author | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-06-27 16:08:26 +0000 |
---|---|---|
committer | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-06-27 16:08:26 +0000 |
commit | 5add940935c084a10b742bc808644906ea7b7b06 (patch) | |
tree | 34cdca517e2c6fd8d89a455aa030e92989f39b02 | |
parent | c88e5454cf32e4e3af51e64313aa3e82fdb65030 (diff) |
Small bugfix with the $DEBUG override, and hidden the unkown anime type, which nobody is interested in...
git-svn-id: svn://vndb.org/vndb@39 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
-rw-r--r-- | data/tpl/vnpage | 3 | ||||
-rw-r--r-- | lib/VNDB.pm | 1 | ||||
-rw-r--r-- | lib/global.pl | 3 |
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 | ], [] ], |