mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +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)) {
|
if($previewer->hasPreview($version)) {
|
||||||
$filename = $previewer->getFileName($version).'.txt';
|
$filename = $previewer->getFileName($version).'.txt';
|
||||||
$result['content'] = file_get_contents($filename);
|
$result['content'] = file_get_contents($filename);
|
||||||
$result['cmd'] = 'previewer '.$previewer->getFileSize($version);
|
$result['cmd'] = 'text converter '.$previewer->getFileSize($version);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$result['cmd'] = 'previewer';
|
$result['cmd'] = 'text converter';
|
||||||
$result['errormsg'] = 'Creating preview failed';
|
$result['errormsg'] = 'Creating plain text failed';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user