wiki: fix internal links within same downloaded page

git-svn-id: trunk@49326 -
This commit is contained in:
wp 2015-06-13 17:08:14 +00:00
parent 11c6f4dfca
commit c4766c9519

View File

@ -379,7 +379,7 @@ var
URL:=GetPageLink(TargetPage);
if Anchor<>'' then
URL+='#'+Anchor;
end else if (not FileExistsUTF8(Filename)) then begin
end else if ((FileName <> '') and not FileExistsUTF8(Filename)) then begin
if WarnMissingPageLinks and WarnURL(LinkToken.Link) then
Log('WARNING: TWiki2XHTMLConverter.InsertLink "'+dbgstr(LinkToken.Link)+'": file not found: "'+Filename+'" at '+W.PosToStr(LinkToken.LinkStartPos,true));
URL:='';