fix zip command test

"zip --version" dose not work on Zip 2.32 (June 19th 2006). "zip -v"
work fine on Zip 2.32 (June 19th 2006) and Zip 3.0 (July 5th 2008).
This commit is contained in:
nao-pon
2012-04-10 10:16:22 +09:00
parent 71462462e4
commit 4352f33e58
+1 -1
View File
@@ -603,7 +603,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
}
unset($o);
//exec('zip --version', $o, $c);
$this->procExec('zip --version', $o, $c);
$this->procExec('zip -v', $o, $c);
if ($c == 0) {
$arcs['create']['application/zip'] = array('cmd' => 'zip', 'argc' => '-r9', 'ext' => 'zip');
}