mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
set proper names/text for cmd and error msg
This commit is contained in:
parent
6b91d3ce40
commit
ac1442d7ca
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user