po: (hopefully) fixed WikiLink to self with po_link_to=default

master
intrigeri 2009-08-26 07:02:29 +02:00
parent 7dd9b65db4
commit 0113c69d4f
1 changed files with 3 additions and 0 deletions

View File

@ -547,6 +547,9 @@ sub mybestlink ($$) {
my $page=shift;
my $link=shift;
return $origsubs{'bestlink'}->($page, $link)
if $config{po_link_to} eq "default";
my $res=$origsubs{'bestlink'}->(masterpage($page), $link);
if (length $res
&& ($config{po_link_to} eq "current" || $config{po_link_to} eq "negotiated")