summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNPage.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-01-28 13:00:18 +0100
committerYorhel <git@yorhel.nl>2015-01-28 13:00:18 +0100
commit98e6d1a8eb593007d34175b273d23d0fb8fff622 (patch)
treedbc3d94adb740eefdce870452dad981c74e79c6a /lib/VNDB/Handler/VNPage.pm
parentc6fb63e28063e85d2c71fc69200f3d480de0b9c4 (diff)
parentb718d117282e73c3f99d308efde46d56789cd041 (diff)
Merge branch 'staff' into master
Conflicts: lib/VNDB/DB/VN.pm lib/VNDB/Handler/VNPage.pm
Diffstat (limited to 'lib/VNDB/Handler/VNPage.pm')
-rw-r--r--lib/VNDB/Handler/VNPage.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index 89b48a91..f75d02d7 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -3,7 +3,7 @@ package VNDB::Handler::VNPage;
use strict;
use warnings;
-no warnings 'experimental::smartmatch';
+no if $] >= 5.018, warnings => 'experimental::smartmatch';
use feature qw{ switch };
use TUWF ':html', 'xml_escape';
use VNDB::Func;
@@ -649,6 +649,7 @@ sub page {
my $haschar = $self->dbVNHasChar($v->{id});
my $hasstaff = $self->dbVNHasStaff($v->{id});
if($haschar || $hasstaff || $self->authCan('edit')) {
+ clearfloat; # fix tabs placement when tags are hidden
ul class => 'maintabs notfirst';
if($haschar || $hasstaff) {
li class => 'left '.(!($char || $staff) && ' tabselected'); a href => "/v$v->{id}#main", name => 'main', mt '_vnpage_tab_main'; end;