Commit 4034d22 1 parent 54b48a4 commit 4034d22 Copy full SHA for 4034d22
File tree 1 file changed +4
-4
lines changed
CRM/Civioffice/DocumentRendererType
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -212,10 +212,10 @@ public function validateSettingsForm(CRM_Civioffice_Form_DocumentRenderer_Settin
212
212
$ unoconv_binary_path = $ form ->_submitValues ['unoconv_binary_path ' ];
213
213
$ unoconv_lock_file_path = $ form ->_submitValues ['unoconv_lock_file_path ' ];
214
214
215
- // We can't check eg. /usr/bin/unoconv on a site with open_basedir restrictions in place so this check would always fail
216
- //if (!file_exists($unoconv_binary_path)) {
217
- // $form->_errors['unoconv_binary_path'] = E::ts("File does not exist. Please provide a correct filename.");
218
- //}
215
+ // There used to be a file_exists() check here for validating that the unoconv binary exists in the given path.
216
+ // We can't however check eg. /usr/bin/unoconv on a site with open_basedir restrictions in place as this check
217
+ // would always fail. There is a check running `unoconv --version` in the isReady() method() which implicitly
218
+ // covers the validation of the unconv binary being accessible.
219
219
220
220
if (!empty ($ lockfile_to_check )) {
221
221
if (!file_exists ($ unoconv_lock_file_path )) {
You can’t perform that action at this time.
0 commit comments