Restore inclusion of video files in export when not including images. Fixes #3324
This commit is contained in:
parent
03897bf68e
commit
4945a016cf
|
@ -786,7 +786,7 @@ function exportFileList(
|
||||||
}
|
}
|
||||||
closedir($dir);
|
closedir($dir);
|
||||||
}
|
}
|
||||||
ZM\Debug(print_r($files, true));
|
ZM\Debug('All available files: '.print_r($files, true));
|
||||||
|
|
||||||
$exportFileList = array();
|
$exportFileList = array();
|
||||||
|
|
||||||
|
@ -843,6 +843,18 @@ function exportFileList(
|
||||||
ZM\Debug('Not including frame images');
|
ZM\Debug('Not including frame images');
|
||||||
} # end if exportImages
|
} # end if exportImages
|
||||||
|
|
||||||
|
if ($exportVideo) {
|
||||||
|
$filesLeft = array();
|
||||||
|
foreach ($files as $file) {
|
||||||
|
if (preg_match('/\.(?:mpg|mpeg|mov|swf|mp4|mkv|avi|asf|3gp)$/', $file)) {
|
||||||
|
$exportFileList[$file] = $file;
|
||||||
|
} else {
|
||||||
|
$filesLeft[$file] = $file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$files = $filesLeft;
|
||||||
|
}
|
||||||
|
|
||||||
if ($exportMisc) {
|
if ($exportMisc) {
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$exportFileList[$file] = $file;
|
$exportFileList[$file] = $file;
|
||||||
|
|
Loading…
Reference in New Issue