Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
bab8b20c
Commit
bab8b20c
authored
Jun 05, 2013
by
Georg Ehrke
Browse files
use ->cmd instead of hardcoded libreoffice
parent
f437673f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/preview/libreoffice-cl.php
View file @
bab8b20c
...
...
@@ -28,7 +28,7 @@ if (extension_loaded('imagick')) {
chdir
(
get_temp_dir
());
$exec
=
'libreoffice
--headless -convert-to pdf '
.
escapeshellarg
(
$abspath
);
$exec
=
$this
->
cmd
.
'
--headless -convert-to pdf '
.
escapeshellarg
(
$abspath
);
exec
(
$exec
)
//create imagick object from pdf
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment