Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
binary path bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed Jun 14, 2016
1 parent df65099 commit e81f08b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ function select_tesseract() {
$output = 'tesseract';

if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
$output = '"%PROGRAMFILES%\\Tesseract-OCR\\tesseract.exe"';
$output = '%PROGRAMFILES%\\Tesseract-OCR\\tesseract.exe';
}

return '"' . $output . '"';
Expand All @@ -752,9 +752,9 @@ function select_soffice() {

if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
if (!empty($_SESSION['soffice_path'])) {
$output = '"' . $_SESSION['soffice_path'] . DIRECTORY_SEPARATOR . 'soffice.exe"';
$output = $_SESSION['soffice_path'] . DIRECTORY_SEPARATOR . 'soffice.exe';
} else {
$output = '"%PROGRAMFILES%\\LibreOffice 4\\program\\soffice.exe"';
$output = '%PROGRAMFILES%\\LibreOffice 4\\program\\soffice.exe';
}
}

Expand Down

0 comments on commit e81f08b

Please sign in to comment.