Nodelist import debugging to make sure we do select nodelists correctly

This commit is contained in:
Deon George 2023-10-06 22:51:47 +11:00
parent 2c504c3d66
commit b32020e60f

View File

@ -138,6 +138,13 @@ class Tic extends FTNBase
*/
public function isNodelist(): bool
{
Log::critical(sprintf('%s:D fo_nodelist_file_area [%d], fo_filearea_domain_filearea_id [%d], regex [%s] name [%s]',
self::LOGKEY,
$this->fo->nodelist_filearea_id,
$this->fo->filearea->domain->filearea_id,
str_replace(['.','?'],['\.','.'],'#^'.$this->fo->filearea->domain->nodelist_filename.'$#i'),
$this->fo->name,
));
return (($this->fo->nodelist_filearea_id === $this->fo->filearea->domain->filearea_id)
&& (preg_match(str_replace(['.','?'],['\.','.'],'#^'.$this->fo->filearea->domain->nodelist_filename.'$#i'),$this->fo->name)));
}