Consequences of 3656:ee3c7f3d964f. Deal with the fact that some subdocs may not have a filename field at all
This commit is contained in:
@@ -381,6 +381,11 @@ endopts:
|
||||
string titleorfn = doc.meta[Rcl::Doc::keytt];
|
||||
if (titleorfn.empty())
|
||||
titleorfn = doc.meta[Rcl::Doc::keyfn];
|
||||
if (titleorfn.empty()) {
|
||||
string url;
|
||||
printableUrl(rclconfig->getDefCharset(), doc.url, url);
|
||||
titleorfn = path_getsimple(url);
|
||||
}
|
||||
|
||||
char cpc[20];
|
||||
sprintf(cpc, "%d", doc.pc);
|
||||
|
||||
Reference in New Issue
Block a user