FIXED : "Warning: Invalid error type specified in ...\PHPWord.php on line 226" is thrown when the specified template file is not found GH-32
This commit is contained in:
parent
049c89d079
commit
9557dd9da8
|
|
@ -223,7 +223,7 @@ class PHPWord {
|
|||
$template = new PHPWord_Template($strFilename);
|
||||
return $template;
|
||||
} else {
|
||||
trigger_error('Template file '.$strFilename.' not found.', E_ERROR);
|
||||
trigger_error('Template file '.$strFilename.' not found.', E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ class PHPWord_Section_Footer {
|
|||
$this->_elementCollection[] = $image;
|
||||
return $image;
|
||||
} else {
|
||||
trigger_error('Src does not exist or invalid image type.', E_ERROR);
|
||||
trigger_error('Src does not exist or invalid image type.', E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ class PHPWord_Section_Header {
|
|||
$this->_elementCollection[] = $image;
|
||||
return $image;
|
||||
} else {
|
||||
trigger_error('Src does not exist or invalid image type.', E_ERROR);
|
||||
trigger_error('Src does not exist or invalid image type.', E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -189,7 +189,7 @@ class PHPWord_Section_Header {
|
|||
$this->_elementCollection[] = $image;
|
||||
return $image;
|
||||
} else {
|
||||
trigger_error('Src does not exist or invalid image type.', E_ERROR);
|
||||
trigger_error('Src does not exist or invalid image type.', E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
Fixed in branch for release 0.7 :
|
||||
- Bugfix: (RomanSyroeshko) GH-34 - PHPWord_Shared_String.IsUTF8 returns FALSE for Cyrillic UTF-8 input
|
||||
- Bugfix: (RomanSyroeshko) GH-32 - "Warning: Invalid error type specified in ...\PHPWord.php on line 226" is thrown when the specified template file is not found
|
||||
- Feature: (Progi1984) GH-1 - Implement RTF Writer
|
||||
- Feature: (Progi1984) GH-2 - Implement ODT Writer
|
||||
- Feature: (kaystrobach) - Word2007 : Add rowspan and colspan to cells
|
||||
|
|
|
|||
Loading…
Reference in New Issue