mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 16:32:20 +00:00
bugfixes
This commit is contained in:
@@ -256,6 +256,7 @@ class dokument_export
|
||||
case 'pdf':
|
||||
$this->temp_filename='out.pdf';
|
||||
exec("unoconv -e IsSkipEmptyPages=false --stdout -f pdf $tempname_zip > ".$this->temp_filename, $out, $ret);
|
||||
|
||||
if($ret!=0)
|
||||
{
|
||||
$this->errormsg = 'Dokumentenkonvertierung ist derzeit nicht möglich. Bitte informieren Sie den Administrator';
|
||||
@@ -341,8 +342,9 @@ class dokument_export
|
||||
if($this->styles_xsl!='')
|
||||
unlink('styles.xml');
|
||||
|
||||
unlink('out.zip');
|
||||
unlink($this->temp_filename);
|
||||
if(file_exists("out.zip"))
|
||||
unlink('out.zip');
|
||||
|
||||
if(count($this->images)>0)
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ class Pdf
|
||||
}
|
||||
if(finfo_file($finfo, $f) != "application/pdf")
|
||||
{
|
||||
$this->errormsg = "Wrong format: '$f'";
|
||||
$this->errormsg = "Wrong format(".finfo_file($finfo, $f)."): '$f'";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user