Automation init...3
This commit is contained in:
parent
1e9842dc6e
commit
336360dcee
@ -95,7 +95,11 @@ class FileLibrary extends MyStorageLibrary
|
||||
$fileInfos = pathinfo($this->_imageLibrary->getDestinationPath() . DIRECTORY_SEPARATOR . $this->getOriginName(), PATHINFO_ALL);
|
||||
$dstFile = $fileInfos['filename'] . "_small." . $fileInfos['extension'];
|
||||
$this->_imageLibrary->setDestinationFile($dstFile);
|
||||
$formDatas['file_path'] = $this->_imageLibrary->create($this->getOriginName());
|
||||
$formDatas['file_path'] = sprintf(
|
||||
"%s/%s",
|
||||
$this->getPath(),
|
||||
$this->_imageLibrary->create($this->getOriginName())
|
||||
);
|
||||
|
||||
$formDatas['user_pid'] = $this->getUserEntity()->getPK();
|
||||
$formDatas['user_name'] = $this->getUserEntity()->getTitle();
|
||||
|
||||
@ -73,7 +73,7 @@ class SmallImageLibrary extends ImageLibrary
|
||||
$width,
|
||||
$height
|
||||
));
|
||||
return sprintf("%s/%s", $this->getSourcePath(), $file);
|
||||
return $file;
|
||||
} catch (\Exception $e) {
|
||||
log_message("warning", $e->getMessage());
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user