set proper names/text for cmd and error msg

This commit is contained in:
Uwe Steinmann 2024-03-28 11:03:59 +01:00
parent 6b91d3ce40
commit ac1442d7ca

View File

@ -167,11 +167,11 @@ class SeedDMS_FulltextService {
if($previewer->hasPreview($version)) {
$filename = $previewer->getFileName($version).'.txt';
$result['content'] = file_get_contents($filename);
$result['cmd'] = 'previewer '.$previewer->getFileSize($version);
$result['cmd'] = 'text converter '.$previewer->getFileSize($version);
}
} else {
$result['cmd'] = 'previewer';
$result['errormsg'] = 'Creating preview failed';
$result['cmd'] = 'text converter';
$result['errormsg'] = 'Creating plain text failed';
}
}
return $result;