mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
3af7ce8177
|
@ -86,9 +86,9 @@ class SeedDMS_ConversionServiceImageToImage extends SeedDMS_ConversionServiceBas
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if($im) {
|
if($im) {
|
||||||
$size = getimagesize($infile);
|
$width = imagesx($im);
|
||||||
if(!empty($params['width']))
|
if(!empty($params['width']))
|
||||||
$im = imagescale($im, min((int) $params['width'], $size[0]));
|
$im = imagescale($im, min((int) $params['width'], $width));
|
||||||
$end = microtime(true);
|
$end = microtime(true);
|
||||||
if($this->logger) {
|
if($this->logger) {
|
||||||
$this->logger->log('Conversion from '.$this->from.' to '.$this->to.' with gd image service took '.($end-$start).' sec.', PEAR_LOG_INFO);
|
$this->logger->log('Conversion from '.$this->from.' to '.$this->to.' with gd image service took '.($end-$start).' sec.', PEAR_LOG_INFO);
|
||||||
|
@ -97,7 +97,7 @@ class SeedDMS_ConversionServiceImageToImage extends SeedDMS_ConversionServiceBas
|
||||||
return imagepng($im, $target);
|
return imagepng($im, $target);
|
||||||
} else {
|
} else {
|
||||||
ob_start();
|
ob_start();
|
||||||
var_dump(imagepng($im));
|
echo imagepng($im);
|
||||||
$image = ob_get_clean();
|
$image = ob_get_clean();
|
||||||
return $image;
|
return $image;
|
||||||
}
|
}
|
||||||
|
|
|
@ -877,6 +877,8 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
|
||||||
*/
|
*/
|
||||||
function MKCOL($options) /* {{{ */
|
function MKCOL($options) /* {{{ */
|
||||||
{
|
{
|
||||||
|
global $fulltextservice;
|
||||||
|
|
||||||
$this->log_options('MKCOL', $options);
|
$this->log_options('MKCOL', $options);
|
||||||
|
|
||||||
$path = $options["path"];
|
$path = $options["path"];
|
||||||
|
@ -925,6 +927,7 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
|
||||||
$controller = Controller::factory('AddSubFolder');
|
$controller = Controller::factory('AddSubFolder');
|
||||||
$controller->setParam('dms', $this->dms);
|
$controller->setParam('dms', $this->dms);
|
||||||
$controller->setParam('user', $this->user);
|
$controller->setParam('user', $this->user);
|
||||||
|
$controller->setParam('fulltextservice', $fulltextservice);
|
||||||
$controller->setParam('folder', $folder);
|
$controller->setParam('folder', $folder);
|
||||||
$controller->setParam('name', $name);
|
$controller->setParam('name', $name);
|
||||||
$controller->setParam('comment', '');
|
$controller->setParam('comment', '');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user