reuse existing helper function OC_Helper::is_function_enabled
This commit is contained in:
parent
970eed2867
commit
07a84aa5eb
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ function findBinaryPath($program) {
|
|||
|
||||
// movie preview is currently not supported on Windows
|
||||
if (!\OC_Util::runningOnWindows()) {
|
||||
$isExecEnabled = !in_array('exec', explode(', ', ini_get('disable_functions')));
|
||||
$isExecEnabled = \OC_Helper::is_function_enabled('exec');
|
||||
$ffmpegBinary = null;
|
||||
$avconvBinary = null;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
//both, libreoffice backend and php fallback, need imagick
|
||||
if (extension_loaded('imagick')) {
|
||||
$isShellExecEnabled = !in_array('shell_exec', explode(', ', ini_get('disable_functions')));
|
||||
$isShellExecEnabled = \OC_Helper::is_function_enabled('shell_exec');
|
||||
|
||||
// LibreOffice preview is currently not supported on Windows
|
||||
if (!\OC_Util::runningOnWindows()) {
|
||||
|
|
Loading…
Reference in a new issue