[volume:FTP,S3] support function _dimensions()

This commit is contained in:
nao-pon
2015-01-23 21:29:23 +09:00
parent 5daf8e54ac
commit 0ca256fb66
2 changed files with 19 additions and 5 deletions
+8 -1
View File
@@ -678,7 +678,14 @@ class elFinderVolumeFTP extends elFinderVolumeDriver {
* @author Dmitry (dio) Levashov
**/
protected function _dimensions($path, $mime) {
return false;
$ret = '';
if ($work = $this->getWorkFile($path)) {
if ($size = @getimagesize($work)) {
$ret = $size[0].'x'.$size[1];
}
}
is_file($work) && @unlink($work);
return $ret;
}
/******************** file/dir content *********************/