Skip to content

Commit 4034d22

Browse files
Update CRM/Civioffice/DocumentRendererType/LocalUnoconv.php
Co-authored-by: jensschuppe <[email protected]>
1 parent 54b48a4 commit 4034d22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CRM/Civioffice/DocumentRendererType/LocalUnoconv.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ public function validateSettingsForm(CRM_Civioffice_Form_DocumentRenderer_Settin
212212
$unoconv_binary_path = $form->_submitValues['unoconv_binary_path'];
213213
$unoconv_lock_file_path = $form->_submitValues['unoconv_lock_file_path'];
214214

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.
219219

220220
if (!empty($lockfile_to_check)) {
221221
if (!file_exists($unoconv_lock_file_path)) {

0 commit comments

Comments
 (0)