File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ public function loadTemplate($strFilename) {
223
223
$ template = new PHPWord_Template ($ strFilename );
224
224
return $ template ;
225
225
} else {
226
- trigger_error ('Template file ' .$ strFilename .' not found. ' , E_ERROR );
226
+ trigger_error ('Template file ' .$ strFilename .' not found. ' , E_USER_ERROR );
227
227
}
228
228
}
229
229
}
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public function addImage($src, $style = null) {
131
131
$ this ->_elementCollection [] = $ image ;
132
132
return $ image ;
133
133
} else {
134
- trigger_error ('Src does not exist or invalid image type. ' , E_ERROR );
134
+ trigger_error ('Src does not exist or invalid image type. ' , E_USER_ERROR );
135
135
}
136
136
}
137
137
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public function addImage($src, $style = null) {
131
131
$ this ->_elementCollection [] = $ image ;
132
132
return $ image ;
133
133
} else {
134
- trigger_error ('Src does not exist or invalid image type. ' , E_ERROR );
134
+ trigger_error ('Src does not exist or invalid image type. ' , E_USER_ERROR );
135
135
}
136
136
}
137
137
@@ -189,7 +189,7 @@ public function addWatermark($src, $style = null) {
189
189
$ this ->_elementCollection [] = $ image ;
190
190
return $ image ;
191
191
} else {
192
- trigger_error ('Src does not exist or invalid image type. ' , E_ERROR );
192
+ trigger_error ('Src does not exist or invalid image type. ' , E_USER_ERROR );
193
193
}
194
194
}
195
195
Original file line number Diff line number Diff line change 24
24
25
25
Fixed in branch for release 0.7 :
26
26
- Bugfix: (RomanSyroeshko) GH-34 - PHPWord_Shared_String.IsUTF8 returns FALSE for Cyrillic UTF-8 input
27
+ - 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
27
28
- Feature: (Progi1984) GH-1 - Implement RTF Writer
28
29
- Feature: (Progi1984) GH-2 - Implement ODT Writer
29
30
- Feature: (kaystrobach) - Word2007 : Add rowspan and colspan to cells
You can’t perform that action at this time.
0 commit comments