summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/CommonHTML.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-03-19 16:27:18 +0100
committerYorhel <git@yorhel.nl>2011-03-19 16:27:18 +0100
commit4bd3c0ed6a2b5cd7803a27af2c84d2b7354fca32 (patch)
treef942f1f2950670208b67972c7bccb102e088c445 /lib/VNDB/Util/CommonHTML.pm
parentefca07848644ef44e44c1b7956677422fd99aafe (diff)
chardb: Implemented char entry copying
Diffstat (limited to 'lib/VNDB/Util/CommonHTML.pm')
-rw-r--r--lib/VNDB/Util/CommonHTML.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index 22e8f13d..a146a098 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -65,7 +65,7 @@ sub htmlMainTabs {
end;
}
- if($type eq 'r' && $self->authCan('edit')) {
+ if($type =~ /[rc]/ && $self->authCan('edit')) {
li $sel eq 'copy' ? (class => 'tabselected') : ();
a href => "/$id/copy", mt '_mtabs_copy';
end;
@@ -277,7 +277,7 @@ sub htmlEditMessage {
div class => 'warning';
h2 mt '_editmsg_copy_title';
p;
- lit mt '_editmsg_copy_msg', sprintf '<a href="/%s%d">%s</a>', $type, $obj->{id}, xml_escape $obj->{title};
+ lit mt '_editmsg_copy_msg', sprintf '<a href="/%s%d">%s</a>', $type, $obj->{id}, xml_escape $obj->{title}||$obj->{name};
end;
end;
}