summaryrefslogtreecommitdiffstats
path: root/lib/private/preview/movies.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/preview/movies.php')
-rw-r--r--lib/private/preview/movies.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview/movies.php b/lib/private/preview/movies.php
index ac771deb413..71cd3bae057 100644
--- a/lib/private/preview/movies.php
+++ b/lib/private/preview/movies.php
@@ -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;